Added Power Saving for NRF52 companions

This commit is contained in:
Kevin Le committed 2026-05-22 10:58:17 +07:00
1 parent c94a9c2589
commit 68bdd61983
3 files changed
+21 -4

No files matched your search

+8
View File
@@ -2222,3 +2222,11 @@ bool MyMesh::advert() {
return false;
}
}
// To check if there is pending work
bool MyMesh::hasPendingWork() const {
#if defined(WITH_BRIDGE)
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
#endif
return _mgr->getOutboundTotal() > 0;
}