NRF5x: Add bug fix for the first timer read.

It has been noticed that first read value can not be trusted.
pull/7375/head
Przemyslaw Stekiel 2018-05-25 12:55:54 +02:00 committed by adbridge
parent d6b7367bac
commit 1e49e4d45c
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ void us_ticker_init(void)
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_START); nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_START);
/* Bug fix. First value can't be trusted. */
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CAPTURE1);
us_ticker_initialized = true; us_ticker_initialized = true;
} }