Skip to content

Commit b40fb81

Browse files
committed
nrf: add ticks (not subticks) to overflow count during reset
Signed-off-by: Sean Cross <[email protected]>
1 parent d01206a commit b40fb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/supervisor/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void reset_cpu(void) {
225225
// We're getting ready to reset, so save the counter off.
226226
// This counter will get reset to zero during the reboot.
227227
uint32_t ticks = nrfx_rtc_counter_get(&rtc_instance);
228-
overflow_tracker.overflowed_ticks += ticks;
228+
overflow_tracker.overflowed_ticks += ticks / 32;
229229
NVIC_SystemReset();
230230
}
231231

0 commit comments

Comments
 (0)