fix arm not spinning

This commit is contained in:
Tristan McGinnis
2025-02-20 15:25:18 -06:00
parent 4090f63890
commit 3f3b0f4302

View File

@@ -76,9 +76,10 @@ class SerialRelay(Node):
thread.start() thread.start()
#if in arm mode, will need to read from the MCU #if in arm mode, will need to read from the MCU
if self.launch_mode == 'arm':
try: try:
while rclpy.ok(): while rclpy.ok():
if self.launch_mode == 'arm':
if self.ser.in_waiting: if self.ser.in_waiting:
self.read_mcu() self.read_mcu()
else: else: