Nuvoton
/
NuMaker-mbed-tickless-example
NuMaker tickless example
Diff: wakeup_rtc.cpp
- Revision:
- 11:0c4b39c54af2
- Parent:
- 10:d2e2c79389e1
- Child:
- 12:b0d19e915d96
--- a/wakeup_rtc.cpp Mon Oct 02 11:24:10 2017 +0800 +++ b/wakeup_rtc.cpp Fri Apr 13 09:15:30 2018 +0800 @@ -98,7 +98,7 @@ // Convert timestamp to struct tm struct tm timeinfo; - if (_rtc_localtime(t, &timeinfo) == false) { + if (_rtc_localtime(t, &timeinfo, RTC_FULL_LEAP_YEAR_SUPPORT) == false) { printf("config_rtc_alarm() fails\n"); return; }