Added PowerSaving for sensor firmware

This commit is contained in:
Kevin Le
2026-09-03 22:54:02 +07:00
parent af15c37d8b
commit e125d375ff
3 changed files with 26 additions and 0 deletions
+5
View File
@@ -979,3 +979,8 @@ void SensorMesh::loop() {
dirty_contacts_expiry = 0;
}
}
// To check if there is pending work
bool SensorMesh::hasPendingWork() const {
return _mgr->getOutboundTotal() > 0;
}