timer::global::CountDown: fix delaying from "up to" to "at least" the timespan

tcp-recv-fnmut
Astro 3 years ago
parent 855d94c48e
commit 7f45d10af3
  1. 2
      libboard_zynq/src/timer/global.rs

@ -110,7 +110,7 @@ impl embedded_hal::timer::CountDown for CountDown {
}
fn wait(&mut self) -> nb::Result<(), Void> {
if self.timer.get_time() < self.timeout {
if self.timer.get_time() <= self.timeout {
Err(nb::Error::WouldBlock)
} else {
Ok(())

Loading…
Cancel
Save