Routers / Repeaters deep sleep default w/ LoRA interrupts (#3251)

* Experimenting with deep sleep routers / repeaters

* Make decision to SDS or LS based on Router/Repeater role

* Don't sleep LoRA on router / repeater deep sleep

* Guards

* Platform guards

* Rename method
This commit is contained in:
Ben Meadors
2024-02-24 07:55:00 -06:00
committed by GitHub
parent f1b314251c
commit 730429fc9b
3 changed files with 48 additions and 9 deletions

View File

@@ -43,4 +43,8 @@ extern Observable<void *> notifyDeepSleep;
/// Called to tell GPS thread to enter deep sleep independently of LoRa/MCU sleep, prior to full poweroff. Must return 0
extern Observable<void *> notifyGPSSleep;
void enableModemSleep();
void enableModemSleep();
#ifdef ARCH_ESP32
void enableLoraInterrupt();
bool shouldLoraWake(uint32_t msecToWake);
#endif