Skip to content

Commit c37a909

Browse files
authored
Merge pull request #1550 from mcuee/issue1249
Harmonise WIN32 and POSIX serial comms timeout
2 parents a0dfe3b + 0db4cb0 commit c37a909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ser_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ static BOOL serial_w32SetTimeOut(HANDLE hComPort, DWORD timeout) // in ms
8888
{
8989
COMMTIMEOUTS ctmo;
9090
ZeroMemory (&ctmo, sizeof(COMMTIMEOUTS));
91-
ctmo.ReadIntervalTimeout = timeout;
92-
ctmo.ReadTotalTimeoutMultiplier = timeout;
91+
ctmo.ReadIntervalTimeout = 0;
92+
ctmo.ReadTotalTimeoutMultiplier = 0;
9393
ctmo.ReadTotalTimeoutConstant = timeout;
9494

9595
return SetCommTimeouts(hComPort, &ctmo);

0 commit comments

Comments
 (0)