Files
go-serial/serial_unix.go
Cristian Maglie 5e9cceab81 Fix potential small timeout bug on unix implementation
A very small port.readTimeout may lead to a negative timeout if the
elapsed time between:

    deadline = time.Now().Add(port.readTimeout)

and

    timeout = time.Until(deadline)

is longer than port.readTimeout.

Fix #134
2022-02-18 12:45:36 +01:00

10 KiB