add a PORT_OVERRIDE env var

This commit is contained in:
ryleu
2025-10-18 02:35:09 -05:00
parent a63a3b19af
commit 414254b3b7

View File

@@ -66,7 +66,8 @@ class SerialRelay(Node):
# Loop through all serial devices on the computer to check for the MCU # Loop through all serial devices on the computer to check for the MCU
self.port = None 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() ports = SerialRelay.list_serial_ports()
for i in range(4): for i in range(4):
if self.port is not None: if self.port is not None: