We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f961384 commit fd9ec48Copy full SHA for fd9ec48
targets/nrf5x/jshardware.c
@@ -679,7 +679,7 @@ bool jshSleep(JsSysTime timeUntilWake) {
679
/// Reschedule the timer (it should already be running) to interrupt after 'period'
680
void jshUtilTimerReschedule(JsSysTime period) {
681
period = period * 1000000 / SYSCLK_FREQ;
682
- if (period < 2) period=2;
+ if (period < 5) period=5;
683
if (period > 0xFFFFFFFF) period=0xFFFFFFFF;
684
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CLEAR);
685
nrf_timer_cc_write(NRF_TIMER1, NRF_TIMER_CC_CHANNEL0, (uint32_t)period);
0 commit comments