mirror of https://github.com/arendst/Tasmota.git
Fix problem of config loss
Sometimes the deepsleep loop is too fast and causes a config reset. Fixed
This commit is contained in:
parent
90ad1666e0
commit
01ad0510a1
|
@ -142,6 +142,7 @@ void DeepSleepStart(void)
|
|||
WifiShutdown();
|
||||
RtcSettings.ultradeepsleep = RtcSettings.nextwakeup - UtcTime();
|
||||
RtcSettingsSave();
|
||||
RtcRebootReset();
|
||||
#ifdef ESP8266
|
||||
ESP.deepSleep(100 * RtcSettings.deepsleep_slip * deepsleep_sleeptime);
|
||||
#endif // ESP8266
|
||||
|
|
Loading…
Reference in New Issue