enable deep sleep behaviour for ESP32

This commit is contained in:
Thomas Göttgens 2023-03-11 23:10:02 +01:00
parent 0d001423c8
commit 210e3e09d5

View File

@ -133,7 +133,7 @@ class ButtonThread : public concurrency::OSThread
setLed(false); setLed(false);
power->shutdown(); power->shutdown();
} }
#elif defined(ARCH_NRF52) #elif defined(ARCH_NRF52) || defined(ARCH_ESP32)
// Do actual shutdown when button released, otherwise the button release // Do actual shutdown when button released, otherwise the button release
// may wake the board immediatedly. // may wake the board immediatedly.
if ((!shutdown_on_long_stop) && (millis() > 30 * 1000)) { if ((!shutdown_on_long_stop) && (millis() > 30 * 1000)) {