mirror of https://github.com/arendst/Tasmota.git
Merge pull request #10270 from stefanbode/patch-9
Fix problem of config loss if deepsleep loop is less than 10seconds
This commit is contained in:
commit
5106556f0e
|
@ -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