You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The embedded_hal::serial::Read trait defines its read method with a nb::Result. This suggests Read::read being nonblocking. But, linux_embedded_hal::Serial implements this trait by calling serial_unix::TTYPort::read which internally uses ppoll.
By default, the timeout passed to ppollis 100ms, which results in read blocking for that amount of time. (Instead of immediately returning nb::Error::WouldBlock.)
The text was updated successfully, but these errors were encountered:
The
embedded_hal::serial::Read
trait defines itsread
method with anb::Result
. This suggestsRead::read
being nonblocking. But,linux_embedded_hal::Serial
implements this trait by callingserial_unix::TTYPort::read
which internally usesppoll
.By default, the timeout passed to
ppoll
is 100ms, which results inread
blocking for that amount of time. (Instead of immediately returningnb::Error::WouldBlock
.)The text was updated successfully, but these errors were encountered: