potential fix for core node not spinning in anchor mode

This commit is contained in:
Tristan McGinnis
2025-02-20 14:17:45 -06:00
parent aa231d43ca
commit 6f98eb231a

View File

@@ -80,9 +80,10 @@ class SerialRelay(Node):
thread = threading.Thread(target=rclpy.spin, args={self}, daemon=True)
thread.start()
if self.launch_mode == 'core':
try:
while rclpy.ok():
if self.launch_mode == 'core':
self.read_MCU() # Check the MCU for updates
except KeyboardInterrupt:
sys.exit(0)