eProsima / Micro-XRCE-DDS-Client

Micro XRCE-DDS Client repository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
130 stars 82 forks source link

fix microcontroller no real bool type issue #387

Open clippinglee opened 3 months ago

clippinglee commented 3 months ago

fix issue https://github.com/eProsima/Micro-XRCE-DDS/issues/173 SOC need real bool type,But MCU does not have real bool type. in MCU,bool = uint8

richiprosima commented 3 months ago

Build status:

richiprosima commented 3 months ago

Build status:

pablogs9 commented 3 months ago

I would prefer to have some kind of check in ucdr_serialize_bool that serializes an 0x01 when arg != 0, is that possible to modify this PR to that approach?

clippinglee commented 3 months ago

yes , but i would prefer to change ucdr_serialize_bool when this function defined,look:https://github.com/eProsima/Micro-CDR/pull/75 Whether or not the caller makes an arg!=0 judgment, we can avoid this problem