kopia lustrzana https://github.com/meshtastic/firmware
make recent changes work on non ESP hardware
rodzic
362d5452d5
commit
82169d4115
|
@ -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
|
if (millis() - now > 30 * 1000) { // If we wait too long just report an error and go to sleep
|
||||||
recordCriticalError(ErrSleepEnterWait);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -289,8 +289,6 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r
|
||||||
|
|
||||||
return cause;
|
return cause;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// not legal on the stock android ESP build
|
// not legal on the stock android ESP build
|
||||||
|
|
||||||
|
@ -310,4 +308,4 @@ void enableModemSleep()
|
||||||
config.light_sleep_enable = false;
|
config.light_sleep_enable = false;
|
||||||
DEBUG_MSG("Sleep request result %x\n", esp_pm_configure(&config));
|
DEBUG_MSG("Sleep request result %x\n", esp_pm_configure(&config));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue