Skip to content

Commit 7118942

Browse files
robert-hhdpgeorge
authored andcommitted
nrf/drivers/ticker: Reset slow ticker callback count on soft reboot.
The micro:bit board (and probably other boards using the music or display module) locked up on soft reboot. Reason was a buffer overflow caused by an index counter, which was not reset on soft_reboot. That's fixed in this commit. Tested with a micro:bit board, performing a series of soft reboots. Signed-off-by: robert-hh <[email protected]>
1 parent 948863c commit 7118942

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/nrf/drivers/ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ void ticker_init0(void) {
6262
#else
6363
NRFX_IRQ_PRIORITY_SET(FastTicker_IRQn, 2);
6464
#endif
65+
m_num_of_slow_tickers = 0;
6566

6667
NRFX_IRQ_PRIORITY_SET(SlowTicker_IRQn, 3);
6768

0 commit comments

Comments
 (0)