Skip to content

Commit 0322097

Browse files
committed
fix(serial): on windows use the lowest available COM port number
1 parent 6823117 commit 0322097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ardupilot_methodic_configurator/backend_flightcontroller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def connect(
234234
except OSError:
235235
pass # Not a soft link, proceed with the original device path
236236
err = self._register_and_try_connect(
237-
comport=autodetect_serial[0],
237+
comport=autodetect_serial[-1],
238238
progress_callback=progress_callback,
239239
baudrate=connection_baudrate,
240240
log_errors=False,
@@ -1157,12 +1157,12 @@ def __list_network_ports() -> list[str]:
11571157
def __auto_detect_serial(self) -> list[mavutil.SerialPort]:
11581158
preferred_ports = [
11591159
"*FTDI*",
1160-
"*Arduino_Mega_2560*",
11611160
"*3D*",
11621161
"*USB_to_UART*",
11631162
"*Ardu*",
11641163
"*PX4*",
11651164
"*Hex_*",
1165+
"*ProfiCNC*",
11661166
"*Holybro_*",
11671167
"*mRo*",
11681168
"*FMU*",

0 commit comments

Comments
 (0)