STM32 LPTICKER : RTC wake up timer is reset before settign a new one

pull/7874/head
jeromecoutant 2018-08-14 13:59:48 +02:00 committed by Cruz Monrreal II
parent 37404941a1
commit 09aac9b0d5
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ uint32_t lp_ticker_read(void)
void lp_ticker_set_interrupt(timestamp_t timestamp)
{
lp_ticker_disable_interrupt();
rtc_set_wake_up_timer(timestamp);
}