Skip to content

Commit 01add03

Browse files
author
Pete Lewis
committed
optional delay before serial program
Note, this is commented out by default, but will be needed for doing any serial programming to micros that need a sec to enumerate the com port. See the following comment thread on the tutorial for more info about how the problem was discovered/fixed [https://learn.sparkfun.com/tutorials/raspberry-pi-stand-alone-programmer/discuss#comment-5ab2d42d7e7fa89f378b4567](https://learn.sparkfun.com/tutorials/raspberry-pi-stand-alone-programmer/discuss#comment-5ab2d42d7e7fa89f378b4567)
1 parent 9f4bac3 commit 01add03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ def blink_all():
429429
program()
430430
parse_results()
431431
if ((os.path.exists('/home/pi/SERIAL_UPLOAD/pi_serial_upload.sh') == True) and (LOCK_BITS_PASS == True)):
432+
# time.sleep(1) # Delay to allow com port enumeration.
433+
# Note, this delay is only needed with micros that have USB capabilities (like the atmega32u4)
432434
program_serial()
433435
parse_results_serial()
434436
time.sleep(3) # led leds stay on for 3 secs

0 commit comments

Comments
 (0)