Skip to content

Commit 49ced1d

Browse files
committed
Changed bool formatting for output to be 1 and 0
1 parent 4e5b854 commit 49ced1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mqtt_client/src/MqttClient.ros2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ bool primitiveRosMessageToString(
193193
} else if (msg_type == "std_msgs/msg/Bool") {
194194
std_msgs::msg::Bool msg;
195195
deserializeRosMessage(*serialized_msg, msg);
196-
primitive = msg.data ? "true" : "false";
196+
primitive = msg.data ? "1" : "0";
197197
} else if (msg_type == "std_msgs/msg/Char") {
198198
std_msgs::msg::Char msg;
199199
deserializeRosMessage(*serialized_msg, msg);

0 commit comments

Comments
 (0)