diff --git a/serial_windows.go b/serial_windows.go index 8894133..c158dfa 100644 --- a/serial_windows.go +++ b/serial_windows.go @@ -193,7 +193,7 @@ func setCommTimeouts(h syscall.Handle, readTimeout time.Duration) error { const MAXDWORD = 1<<32 - 1 // blocking read by default - var timeoutMs int64 = MAXDWORD + var timeoutMs int64 = MAXDWORD - 1 if readTimeout > 0 { // non-blocking read