Skip to content

Commit

Permalink
Fix RTC period
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Oct 24, 2024
1 parent 11c9df1 commit 972782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peripherals/nrf52832/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ PPI_TASK_HANDLER(rtc_task_handler)
case TASK_ID(RTC_TASKS_START):
if (!rtc->running)
{
ticker_add(rtc->ticker, rtc_tick, rtc, 32768 / (rtc->prescaler + 1), true);
ticker_add(rtc->ticker, rtc_tick, rtc, rtc->prescaler + 1, true);

rtc->running = true;
}
Expand Down

0 comments on commit 972782d

Please sign in to comment.