mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-14 17:58:05 +00:00
Reduce drain timeout value for Windows in urclock.c
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user