@ -178,7 +178,8 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
@@ -178,7 +178,8 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
// Code must specify a valid timeout value (0 means don't timeout)
constDWORDctoms=(timeout*100);
COMMTIMEOUTScto={ctoms,0,ctoms,0,ctoms};
SetCommTimeouts(hSerial,&cto);
@ -230,10 +231,9 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
@@ -230,10 +231,9 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p