implement most of sleep handling for the new radio stack

This commit is contained in:
geeksville
2020-04-30 15:50:07 -07:00
parent 62a893c760
commit d7d8188093
5 changed files with 31 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ class RadioInterface
*
* This method must be used before putting the CPU into deep or light sleep.
*/
bool canSleep() { return true; }
virtual bool canSleep() { return true; }
/// Prepare hardware for sleep. Call this _only_ for deep sleep, not needed for light sleep.
virtual bool sleep() { return true; }