From 82169d4115dad3a53fc2f8d9bb027968628327e0 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 15 Jun 2020 13:32:06 -0700 Subject: [PATCH] make recent changes work on non ESP hardware --- src/sleep.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sleep.cpp b/src/sleep.cpp index 2dfee04fb..2d3ad4d31 100644 --- a/src/sleep.cpp +++ b/src/sleep.cpp @@ -129,7 +129,7 @@ static void waitEnterSleep() if (millis() - now > 30 * 1000) { // If we wait too long just report an error and go to sleep recordCriticalError(ErrSleepEnterWait); - ESP.restart(); // FIXME - for now we just restart, need to fix bug #167 + assert(0); // FIXME - for now we just restart, need to fix bug #167 break; } } @@ -289,8 +289,6 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r return cause; } -#endif - // not legal on the stock android ESP build @@ -310,4 +308,4 @@ void enableModemSleep() config.light_sleep_enable = false; DEBUG_MSG("Sleep request result %x\n", esp_pm_configure(&config)); } - +#endif