Skip to content
Snippets Groups Projects
Commit a4c8ef9d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: Reset "virtual RTC" on power on.

Initialize RTC period coefficients, etc. if RTC RAM doesn't contain valid
values. time.time() then will return number of seconds since power-on, unless
set to different timebase.

This reuses MEM_MAGIC for the purpose beyond its initial purpose (but the whole
modpybrtc.c need to be eventually reworked completely anyway).
parent 57884996
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment