diff --git a/embassy-time/src/driver_mock.rs b/embassy-time/src/driver_mock.rs index becb6bfd..c255615c 100644 --- a/embassy-time/src/driver_mock.rs +++ b/embassy-time/src/driver_mock.rs @@ -51,7 +51,7 @@ impl MockDriver { impl Driver for MockDriver { fn now(&self) -> u64 { - critical_section::with(|cs| self.now.borrow(cs).get().as_micros() as u64) + critical_section::with(|cs| self.now.borrow(cs).get().as_ticks() as u64) } unsafe fn allocate_alarm(&self) -> Option {