diff options
-rwxr-xr-x | Tools/px_uploader.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index c9a142ddf..f4e317cfa 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -552,7 +552,7 @@ try: print("if the board does not respond, unplug and re-plug the USB connector.") up.send_reboot() - # wait for the reboot, without we might run into Serial I/O Error 5 + # wait for the reboot, without we might run into Serial I/O Error 5 time.sleep(0.5) # always close the port @@ -575,10 +575,10 @@ try: # we could loop here if we wanted to wait for more boards... sys.exit(0) - #Rate-limit retries to prevent spin-lock from hogging the CPU - time.sleep(0.5) + # Delay retries to < 20 Hz to prevent spin-lock from hogging the CPU + time.sleep(0.05) -#CTRL+C aborts the upload/spin-lock by interrupt mechanics +# CTRL+C aborts the upload/spin-lock by interrupt mechanics except KeyboardInterrupt: print("\n Upload aborted by user.") - sys.exit(0)
\ No newline at end of file + sys.exit(0) |