From 3f6ca4b22ced848a4b849610a8bce0410c2091cc Mon Sep 17 00:00:00 2001 From: puuu Date: Tue, 31 May 2016 22:38:07 +0900 Subject: docs/esp8266/general: Add note about RTC overflow. --- docs/esp8266/general.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/esp8266') diff --git a/docs/esp8266/general.rst b/docs/esp8266/general.rst index d6ad83b2a5..313e6074c1 100644 --- a/docs/esp8266/general.rst +++ b/docs/esp8266/general.rst @@ -91,3 +91,12 @@ the following in ``main.py``:: This will allow to keep the structure of your application clear, as well as allow to install multiple applications on a board, and switch among them. + + +Real-time clock +--------------- + +Due to limitations of the ESP8266 chip the internal real-time clock (RTC) +will overflow every 7:45h. If a long-term working RTC time is required then +``time()`` or ``localtime()`` must be called at least once within 7 hours. +MicroPython will then handle the overflow. -- cgit v1.2.3