mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
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();
|
WifiShutdown();
|
||||||
RtcSettings.ultradeepsleep = RtcSettings.nextwakeup - UtcTime();
|
RtcSettings.ultradeepsleep = RtcSettings.nextwakeup - UtcTime();
|
||||||
RtcSettingsSave();
|
RtcSettingsSave();
|
||||||
|
RtcRebootReset();
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
ESP.deepSleep(100 * RtcSettings.deepsleep_slip * deepsleep_sleeptime);
|
ESP.deepSleep(100 * RtcSettings.deepsleep_slip * deepsleep_sleeptime);
|
||||||
#endif // ESP8266
|
#endif // ESP8266
|
||||||
|
Loading…
x
Reference in New Issue
Block a user