Reduce drain timeout value for Windows in urclock.c
This commit is contained in:
parent
2e398916a7
commit
f9aea24fba
|
@ -2154,9 +2154,7 @@ static int urclock_open(PROGRAMMER *pgm, const char *port) {
|
||||||
usleep((80+ur.delay)*1000); // Wait until board comes out of reset
|
usleep((80+ur.delay)*1000); // Wait until board comes out of reset
|
||||||
|
|
||||||
// Drain any extraneous input
|
// Drain any extraneous input
|
||||||
#ifndef WIN32
|
|
||||||
serial_drain_timeout = 80; // ms
|
serial_drain_timeout = 80; // ms
|
||||||
#endif
|
|
||||||
serial_drain(&pgm->fd, 0);
|
serial_drain(&pgm->fd, 0);
|
||||||
|
|
||||||
if(urclock_getsync(pgm) < 0)
|
if(urclock_getsync(pgm) < 0)
|
||||||
|
|
Loading…
Reference in New Issue