Skip to content

Commit 9fa4f37

Browse files
committed
Update 'ambiq_bin2board' timeout
Per: https://forum.sparkfun.com/viewtopic.php?f=164&t=50632
1 parent 893f103 commit 9fa4f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ambiq/ambiq_bin2board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def upload(args, verboseprint):
380380

381381
#Check to see if the com port is available
382382
try:
383-
with serial.Serial(args.port, args.baud, timeout=1) as ser:
383+
with serial.Serial(args.port, args.baud, timeout=connection_timeout) as ser:
384384
pass
385385
except:
386386

@@ -414,7 +414,7 @@ def upload(args, verboseprint):
414414
while loadTries < 3:
415415
loadSuccess = False
416416

417-
with serial.Serial(args.port, args.baud, timeout=0.5) as ser:
417+
with serial.Serial(args.port, args.baud, timeout=connection_timeout) as ser:
418418
#DTR is driven low when serial port open. DTR has now pulled RST low.
419419

420420
time.sleep(0.005) #3ms and 10ms work well. Not 50, and not 0.

0 commit comments

Comments
 (0)