From 01ad0510a1113743fcc064d76de358fbf849d345 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Sun, 27 Dec 2020 10:51:29 +0100 Subject: [PATCH] Fix problem of config loss Sometimes the deepsleep loop is too fast and causes a config reset. Fixed --- tasmota/xdrv_29_deepsleep.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_29_deepsleep.ino b/tasmota/xdrv_29_deepsleep.ino index 6b6492f1a..43ad54c6b 100644 --- a/tasmota/xdrv_29_deepsleep.ino +++ b/tasmota/xdrv_29_deepsleep.ino @@ -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