Skip to content

Commit

Permalink
BUGFIX: Autoconnect on windows with certain FC types
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Apr 25, 2024
1 parent 5f2d25e commit a356438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MethodicConfigurator/backend_flightcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def __list_network_ports():
def __auto_detect_serial(self):
for connection in self.connection_tuples:
if 'mavlink' in connection[1].lower():
return [connection[0]]
return [mavutil.SerialPort(device=connection[0], description=connection[1])]

serial_list = mavutil.auto_detect_serial(preferred_list=preferred_ports)
serial_list.sort(key=lambda x: x.device)
Expand Down

0 comments on commit a356438

Please sign in to comment.