mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Tools: fix uploader for macos systems
This commit is contained in:
parent
4e151197a8
commit
bc97ee5498
@ -681,12 +681,12 @@ def ports_to_try(args):
|
||||
# Cygwin, don't open MAC OS and Win ports, we are more like
|
||||
# Linux. Cygwin needs to be before Windows test
|
||||
pass
|
||||
elif "win" in _platform:
|
||||
# Windows, don't open POSIX ports
|
||||
portlist = [port for port in portlist if "/" not in port]
|
||||
elif "darwin" in _platform:
|
||||
# OS X, don't open Windows and Linux ports
|
||||
portlist = [port for port in portlist if "COM" not in port and "ACM" not in port]
|
||||
elif "win" in _platform:
|
||||
# Windows, don't open POSIX ports
|
||||
portlist = [port for port in portlist if "/" not in port]
|
||||
|
||||
return portlist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user