From c0b6305ca77e232d71a03e9050f0a8429c95efc4 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Tue, 16 Apr 2024 13:00:14 +0200 Subject: [PATCH] IMPROVEMENT: pylint fix --- MethodicConfigurator/backend_flightcontroller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MethodicConfigurator/backend_flightcontroller.py b/MethodicConfigurator/backend_flightcontroller.py index 7e8d252..dff6141 100644 --- a/MethodicConfigurator/backend_flightcontroller.py +++ b/MethodicConfigurator/backend_flightcontroller.py @@ -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])