Skip to content

Commit

Permalink
Mount setup improvements
Browse files Browse the repository at this point in the history
* Ignore more ports we know won't match.
  • Loading branch information
wtgee committed May 11, 2024
1 parent d163796 commit 04c1094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/panoptes/pocs/utils/cli/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,17 @@ def setup_mount(

# Baudrates to check.
baudrates = [9600, 115200]

# Ports to ignore
ignore_ports = ['/dev/serial', '/dev/aag', '/dev/ttyACM0']

# Get all the serial ports.
ports = get_serial_port_info()

# Loop through all the ports and baudrates.
for port in ports:
for baudrate in baudrates:
if 'serial' in port.device:
if port.device in ignore_ports:
continue
print(f"Trying {port.device=} at {baudrate=}...")
device = SerialData(port=port.device, baudrate=baudrate, timeout=1)
Expand Down

0 comments on commit 04c1094

Please sign in to comment.