Skip to content

Commit

Permalink
BUGFIX: do not try to access and empty string in the __auto_detect_se…
Browse files Browse the repository at this point in the history
…rial() function
  • Loading branch information
amilcarlucas committed Jun 11, 2024
1 parent beca928 commit 5d6fad9
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 @@ -399,7 +399,7 @@ def __list_network_ports():
def __auto_detect_serial(self):
serial_list = []
for connection in self.__connection_tuples:
if 'mavlink' in connection[1].lower():
if connection[1] and 'mavlink' in connection[1].lower():
serial_list.append(mavutil.SerialPort(device=connection[0], description=connection[1]))
if len(serial_list) == 1:
# selected automatically if unique
Expand Down

0 comments on commit 5d6fad9

Please sign in to comment.