summaryrefslogtreecommitdiffstatshomepage
path: root/py/misc.h
diff options
context:
space:
mode:
authorpuuu <puuu@users.noreply.github.com>2016-05-24 22:31:50 +0900
committerDamien George <damien.p.george@gmail.com>2016-06-03 14:37:49 +0100
commitcafdfb7af3628aac5110770097b6cb4fdd70b9d5 (patch)
treea554f6113137409f7c12330ed9995ee92b9d47b3 /py/misc.h
parent1191ec6a1477485a48db45515da3e30d136503b9 (diff)
downloadmicropython-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 'py/misc.h')
0 files changed, 0 insertions, 0 deletions