Modify recv timeouts to accommodate urclock sync with ftdi
This commit is contained in:
parent
92f980d15f
commit
50a5d87a4e
|
@ -1942,7 +1942,7 @@ static int urclock_getsync(const PROGRAMMER *pgm) {
|
||||||
AVRPART *part;
|
AVRPART *part;
|
||||||
|
|
||||||
// Reduce timeout for establishing comms
|
// Reduce timeout for establishing comms
|
||||||
serial_recv_timeout = 10; // ms
|
serial_recv_timeout = 25; // ms
|
||||||
part = partdesc? locate_part(part_list, partdesc): NULL;
|
part = partdesc? locate_part(part_list, partdesc): NULL;
|
||||||
/*
|
/*
|
||||||
* The urboot autosync detection uses a loop
|
* The urboot autosync detection uses a loop
|
||||||
|
@ -2240,11 +2240,11 @@ static int urclock_open(PROGRAMMER *pgm, const char *port) {
|
||||||
serial_set_dtr_rts(&pgm->fd, 1);
|
serial_set_dtr_rts(&pgm->fd, 1);
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
if((110+ur.delay) > 0)
|
if((100+ur.delay) > 0)
|
||||||
usleep((110+ur.delay)*1000); // Wait until board comes out of reset
|
usleep((100+ur.delay)*1000); // Wait until board comes out of reset
|
||||||
#else
|
#else
|
||||||
if((137+ur.delay) > 0)
|
if((125+ur.delay) > 0)
|
||||||
usleep((137+ur.delay)*1000); // Wait until board starts up accommodating effective drain time
|
usleep((125+ur.delay)*1000); // Wait until board starts up accommodating effective drain time
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Drain any extraneous input
|
// Drain any extraneous input
|
||||||
|
|
Loading…
Reference in New Issue