forked from Archive/PX4-Autopilot
Uploader: Fix flashing if multiple board types are connected
This commit is contained in:
parent
8424325f73
commit
a31fccb0b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue