Skip to content

Commit 2ad748e

Browse files
committed
fix now for SysCounter
1 parent 82ee741 commit 2ad748e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timer/counter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl<const FREQ: u32> SysCounter<FREQ> {
262262

263263
pub fn now(&self) -> TimerInstantU32<FREQ> {
264264
TimerInstantU32::from_ticks(
265-
(SYST::get_current() - SYST::get_reload()) / (self.clk.raw() / FREQ),
265+
(SYST::get_reload() - SYST::get_current()) / (self.clk.raw() / FREQ),
266266
)
267267
}
268268

0 commit comments

Comments
 (0)