Skip to content

Commit

Permalink
Fix issue #32 noticed by paocalvi
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmigan Casebolt committed Nov 13, 2015
1 parent 0b54e01 commit ccc38f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func setCommTimeouts(h syscall.Handle, readTimeout time.Duration) error {

if readTimeout > 0 {
// non-blocking read
timeoutMs := readTimeout.Nanoseconds() / 1e6
timeoutMs = readTimeout.Nanoseconds() / 1e6
if timeoutMs < 1 {
timeoutMs = 1
} else if timeoutMs > MAXDWORD-1 {
Expand Down

0 comments on commit ccc38f3

Please sign in to comment.