diff --git a/src/dev/esp32/esp32.cpp b/src/dev/esp32/esp32.cpp index db5752f0..d1e0b824 100644 --- a/src/dev/esp32/esp32.cpp +++ b/src/dev/esp32/esp32.cpp @@ -115,7 +115,9 @@ Esp32Device::Esp32Device() void Esp32Device::reboot() { - ESP.restart(); + esp_sleep_enable_timer_wakeup(50 * 1000); + esp_deep_sleep_start(); + // ESP.restart(); } void Esp32Device::show_info()