Fixed Core Node still trying to use ports in anchor mode

This commit is contained in:
Tristan McGinnis
2025-02-20 11:41:42 -06:00
parent 095b97000d
commit 8e757464d1
4 changed files with 20 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ class SerialRelay(Node):
# if pong is in response, then we are talking with the MCU
if b"pong" in response:
self.port = port
self.get_logger.info(f"Found MCU at {self.port}!")
self.get_logger().info(f"Found MCU at {self.port}!")
break
except:
pass
@@ -57,7 +57,7 @@ class SerialRelay(Node):
break
if self.port is None:
self.get_logger.info("Unable to find MCU...")
self.get_logger().info("Unable to find MCU...")
time.sleep(1)
sys.exit(1)