mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Make WIN32 implementation of ser_recv() fail on time-out
This commit is contained in:
@@ -589,7 +589,7 @@ static int ser_recv(const union filedescriptor *fd, unsigned char * buf, size_t
|
||||
}
|
||||
|
||||
/* time out detected */
|
||||
if (read == 0) {
|
||||
if (read < buflen) {
|
||||
pmsg_notice2("ser_recv(): programmer is not responding\n");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user