# Attempt to open the port while it exists and until timeout occurs
# attempt to open the port while it exists and until timeout occurs
whileself.portisnotNone:
whileself.portisnotNone:
portopen=True
portopen=True
try:
try:
@ -605,6 +607,27 @@ def main():
print("Loaded firmware for %x,%x, size: %d bytes, waiting for the bootloader..."%(fw.property('board_id'),fw.property('board_revision'),fw.property('image_size')))
print("Loaded firmware for %x,%x, size: %d bytes, waiting for the bootloader..."%(fw.property('board_id'),fw.property('board_revision'),fw.property('image_size')))
print("If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.")
print("If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.")
# tell any GCS that might be connected to the autopilot to give up