Skip to content

Commit 865bb14

Browse files
committed
Add fix to reset low power timer when set_time() is called otherwise you just end up adding to the time instead of setting it.
ARMmbed#7849
1 parent 7304f99 commit 865bb14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/mbed_rtc_time.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static time_t _rtc_lpticker_read(void)
5555

5656
static void _rtc_lpticker_write(time_t t)
5757
{
58+
_rtc_lp_timer->reset();
5859
_rtc_lp_base = t;
5960
}
6061

0 commit comments

Comments
 (0)