mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
add a PORT_OVERRIDE env var
This commit is contained in:
@@ -66,7 +66,8 @@ class SerialRelay(Node):
|
||||
|
||||
# Loop through all serial devices on the computer to check for the MCU
|
||||
self.port = None
|
||||
# self.port = "/tmp/ttyACM9" # Fake port, for debugging
|
||||
if port_override := os.getenv("PORT_OVERRIDE"):
|
||||
self.port = port_override
|
||||
ports = SerialRelay.list_serial_ports()
|
||||
for i in range(4):
|
||||
if self.port is not None:
|
||||
|
||||
Reference in New Issue
Block a user