Improved RX duty-cycle watchdog observation with esp32 sleep in mind
This commit is contained in:
1 parent
9cbd944a29
commit
a1330facff
4 files changed
+54
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -1049,5 +1049,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