mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-08-28 03:14:05 +00:00
Improved RX duty-cycle watchdog observation with esp32 sleep in mind
This commit is contained in:
@@ -1464,5 +1464,6 @@ bool MyMesh::hasPendingWork() const {
|
||||
#if defined(WITH_BRIDGE)
|
||||
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
|
||||
#endif
|
||||
if (radio_driver.isWatchdogObserving()) return true; // keep MCU awake for one radio duty cycle
|
||||
return _mgr->getOutboundTotal() > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user