|
|
|
@ -575,8 +575,8 @@ try:
@@ -575,8 +575,8 @@ 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 |
|
|
|
|
except KeyboardInterrupt: |
|
|
|
|