Skip to content

Commit

Permalink
IMPROVEMENT: pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Apr 16, 2024
1 parent 070f315 commit c0b6305
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MethodicConfigurator/backend_flightcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ def __init__(self, reboot_time: int):

self.reboot_time = reboot_time
comports = FlightController.__list_serial_ports()
# ubcports = FlightController.list_usb_devices()
usbports = FlightController.__list_usb_devices()
netports = FlightController.__list_network_ports()
# list of tuples with the first element being the port name and the second element being the port description
self.connection_tuples = [(port.device, port.description) for port in comports] + [(port, port) for port in netports]
self.connection_tuples = [(port.device, port.description) for port in comports] + \
[(port, port) for port in usbports] + \
[(port, port) for port in netports]
logging_info('Available connection ports are:')
for port in self.connection_tuples:
logging_info("%s - %s", port[0], port[1])
Expand Down

0 comments on commit c0b6305

Please sign in to comment.