Precommit format

This commit is contained in:
Magnus Persson 2022-07-06 09:43:48 +02:00
parent b4c7566a08
commit c0db4dd8da

View File

@ -114,14 +114,13 @@ void checkSleepMode(float angle, float volt) {
// If we are in storage mode, just go back to sleep // If we are in storage mode, just go back to sleep
if (runMode == RunMode::storageMode) { if (runMode == RunMode::storageMode) {
Log.notice(F( Log.notice(
"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());
#else #else
#warning "Check and test the max deep sleep for esp32" #warning "Check and test the max deep sleep for esp32"
deepSleep(70 * deepSleep(70 * 60); // quick search on internet suggest max time is 70 min
60); // quick search on internet suggest max time is 70 min
#endif #endif
} }
} }