fix message type issues?

This commit is contained in:
Tristan McGinnis
2025-02-20 14:47:10 -06:00
parent 10192c746e
commit fe5ed1a071

View File

@@ -108,8 +108,9 @@ class SerialRelay(Node):
self.exit(1)
def send_cmd(self, msg):
message = msg.data
self.get_logger().info(f"Sending command to MCU: {msg}")
self.ser.write(bytes(msg, "utf8"))
self.ser.write(bytes(message, "utf8"))
@staticmethod
def list_serial_ports():