diff options
| author | Sean Cross <sean@xobs.io> | 2020-05-23 11:26:27 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2020-05-27 11:28:50 +0800 |
| commit | e470376c126828c768dfbcf25430869e8bc2b021 (patch) | |
| tree | f2b3160a187101eefdbf968060ee1065ad7cdd2a /ports/nrf | |
| parent | 296ba101ec8895720012660e36c4e34246b6b1b2 (diff) | |
nrf: add ticks (not subticks) to overflow count during reset
Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'ports/nrf')
| -rw-r--r-- | ports/nrf/supervisor/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/supervisor/port.c b/ports/nrf/supervisor/port.c index 5c76f6aa1..aee2d63e1 100644 --- a/ports/nrf/supervisor/port.c +++ b/ports/nrf/supervisor/port.c @@ -225,7 +225,7 @@ void reset_cpu(void) { // We're getting ready to reset, so save the counter off. // This counter will get reset to zero during the reboot. uint32_t ticks = nrfx_rtc_counter_get(&rtc_instance); - overflow_tracker.overflowed_ticks += ticks; + overflow_tracker.overflowed_ticks += ticks / 32; NVIC_SystemReset(); } |
