Skip to content

Commit

Permalink
Tools: sort serial ports for uploader
Browse files Browse the repository at this point in the history
this ensures that the first port on linux is used, the 2nd port may
not have mavlink enabled
  • Loading branch information
tridge authored and magicrub committed Nov 27, 2023
1 parent 87fef1a commit fcb3d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/scripts/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def ports_to_try(args):
if "linux" in _platform or "darwin" in _platform or "cygwin" in _platform:
import glob
for pattern in patterns:
portlist += glob.glob(pattern)
portlist += sorted(glob.glob(pattern))
else:
portlist = patterns

Expand Down

0 comments on commit fcb3d40

Please sign in to comment.