Improved RX duty-cycle watchdog observation with esp32 sleep in mind

This commit is contained in:
Jarosław Domański committed 2026-07-17 15:21:25 +02:00
1 parent ce7d7d4210
commit 6582e8451f
4 files changed
+54 -6

No files matched your search

+1
View File
@@ -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;
}