NRF5x: Add bug fix for the first timer read.

It has been noticed that first read value can not be trusted.
pull/7172/head
Przemyslaw Stekiel 2018-05-25 12:55:54 +02:00
parent 1583cbc78e
commit 7e222f2994
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);
/* Bug fix. First value can't be trusted. */
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CAPTURE1);
us_ticker_initialized = true;
}