Make WIN32 implementation of ser_recv() fail on time-out

This commit is contained in:
Marius Greuel 2022-12-29 15:35:20 +01:00
parent 0f956e90eb
commit 894d4cba10
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}