Browse Source

Reduce delay between board search attempts, code style

sbg
Lorenz Meier 10 years ago
parent
commit
6d2e8b9d08
  1. 4
      Tools/px_uploader.py

4
Tools/px_uploader.py

@ -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:

Loading…
Cancel
Save