diff options
author | puuu <puuu@users.noreply.github.com> | 2016-05-24 22:31:50 +0900 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-06-03 14:37:49 +0100 |
commit | cafdfb7af3628aac5110770097b6cb4fdd70b9d5 (patch) | |
tree | a554f6113137409f7c12330ed9995ee92b9d47b3 /extmod/modubinascii.c | |
parent | 1191ec6a1477485a48db45515da3e30d136503b9 (diff) | |
download | micropython-cafdfb7af3628aac5110770097b6cb4fdd70b9d5.tar.gz micropython-cafdfb7af3628aac5110770097b6cb4fdd70b9d5.zip |
esp8266/modpybrtc: Handle RTC overflow.
ESP-SDK system_get_rtc_time() returns uint32 and therefore overflow
about every 7:45h. Let's write the last state of system_get_rtc_time()
in RTC mem and use it to check for overflow. This commit require running
pyb_rtc_get_us_since_2000() at least once within 7 hours to avoid
overflow.
Diffstat (limited to 'extmod/modubinascii.c')
0 files changed, 0 insertions, 0 deletions