Low power timer needs to be reset when setting time.

Reset _rtc_lp_timer only if DEVICE_LPTICKER is defined.
pull/7849/head
RFulchiero 2018-08-21 11:09:03 -05:00
parent 430fb3e7ba
commit d82990cd25
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ static time_t _rtc_lpticker_read(void)
static void _rtc_lpticker_write(time_t t)
{
_rtc_lp_timer->reset();
_rtc_lp_base = t;
}