extra print
This commit is contained in:
@@ -34,6 +34,7 @@ private:
|
||||
char *readdata = new char[1];
|
||||
serial_port.read(readdata, 1);
|
||||
auto message = std_msgs::msg::String();
|
||||
RCLCPP_INFO(this->get_logger(), "data: %s", readdata);
|
||||
|
||||
if (readdata[0] == 0x54) // 0x54 = T (from the user manual)
|
||||
{
|
||||
@@ -61,7 +62,7 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
RCLCPP_INFO(this->get_logger(), "Serial port opened");
|
||||
RCLCPP_INFO(this->get_logger(), "Serial port opened on /dev/ttyACM0");
|
||||
}
|
||||
|
||||
serial_port.close();
|
||||
|
||||
Reference in New Issue
Block a user