mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
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…
x
Reference in New Issue
Block a user