Skip to content

Commit fd9ec48

Browse files
committed
reduce min timer period, which should hopefully make it less likely to stop working occasionally
1 parent f961384 commit fd9ec48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/nrf5x/jshardware.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ bool jshSleep(JsSysTime timeUntilWake) {
679679
/// Reschedule the timer (it should already be running) to interrupt after 'period'
680680
void jshUtilTimerReschedule(JsSysTime period) {
681681
period = period * 1000000 / SYSCLK_FREQ;
682-
if (period < 2) period=2;
682+
if (period < 5) period=5;
683683
if (period > 0xFFFFFFFF) period=0xFFFFFFFF;
684684
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CLEAR);
685685
nrf_timer_cc_write(NRF_TIMER1, NRF_TIMER_CC_CHANNEL0, (uint32_t)period);

0 commit comments

Comments
 (0)