Storage mode deepSleep forever
This commit is contained in:
parent
db590f8f5f
commit
4b0e5b393a
@ -117,10 +117,12 @@ void checkSleepMode(float angle, float volt) {
|
|||||||
Log.notice(
|
Log.notice(
|
||||||
F("Main: Storage mode entered, going to sleep for maximum time." CR));
|
F("Main: Storage mode entered, going to sleep for maximum time." CR));
|
||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
ESP.deepSleep(ESP.deepSleepMax());
|
// ESP.deepSleep(ESP.deepSleepMax());
|
||||||
|
ESP.deepSleep(0); // indefinite sleep
|
||||||
#else
|
#else
|
||||||
#warning "Check and test the max deep sleep for esp32"
|
#warning "Check and test the max deep sleep for esp32"
|
||||||
deepSleep(70 * 60); // quick search on internet suggest max time is 70 min
|
//deepSleep(70 * 60); // quick search on internet suggest max time is 70 min
|
||||||
|
ESP.deepSleep(0); // indefinite sleep
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user