##// END OF EJS Templates
Win32 read timeout between bytes set to a more realistic value
jeandet -
r43:a38235df29ea alexis
parent child
Show More
@@ -204,7 +204,7 int rs232setup(rs232port_t fd, int ChSiz
204 dcbSerialParams.Parity=privatedecodeparity(Parity);
204 dcbSerialParams.Parity=privatedecodeparity(Parity);
205 SetCommState((HANDLE)fd, &dcbSerialParams);
205 SetCommState((HANDLE)fd, &dcbSerialParams);
206 COMMTIMEOUTS timeouts={0};
206 COMMTIMEOUTS timeouts={0};
207 timeouts.ReadIntervalTimeout=100;
207 timeouts.ReadIntervalTimeout=5;
208 timeouts.ReadTotalTimeoutConstant=100;
208 timeouts.ReadTotalTimeoutConstant=100;
209 timeouts.ReadTotalTimeoutMultiplier=1;
209 timeouts.ReadTotalTimeoutMultiplier=1;
210 timeouts.WriteTotalTimeoutConstant=100;
210 timeouts.WriteTotalTimeoutConstant=100;
General Comments 0
You need to be logged in to leave comments. Login now