Fixed MS/TP that was not working in ports/win32 (#694)

This commit is contained in:
Nandkishor Biradar
2024-07-19 18:23:16 +05:30
committed by GitHub
parent e984a19885
commit fd2f33b522
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ static void RS485_Configure_Status(void)
/* configure the COM port timeout values */
ctNew.ReadIntervalTimeout = MAXDWORD;
ctNew.ReadTotalTimeoutMultiplier = MAXDWORD;
ctNew.ReadTotalTimeoutConstant = 1000;
ctNew.ReadTotalTimeoutConstant = 1;
ctNew.WriteTotalTimeoutMultiplier = 0;
ctNew.WriteTotalTimeoutConstant = 0;
if (!SetCommTimeouts(RS485_Handle, &ctNew)) {