mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
Uploader: Fix flashing if multiple board types are connected
This commit is contained in:
@@ -565,8 +565,12 @@ try:
|
||||
|
||||
except RuntimeError as ex:
|
||||
|
||||
# print the error
|
||||
print("\nERROR: %s" % ex.args)
|
||||
if "not suitable" in ex.args:
|
||||
up.close()
|
||||
continue
|
||||
else:
|
||||
# print the error
|
||||
print("\nERROR: %s" % ex.args)
|
||||
|
||||
finally:
|
||||
# always close the port
|
||||
|
||||
Reference in New Issue
Block a user