Переглянути джерело

* power saving: hasPendingWork() now also checks if there's a pending contacts write

Scott Powell 2 місяців тому
батько
коміт
b259fbd01b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      examples/companion_radio/MyMesh.cpp

+ 1 - 1
examples/companion_radio/MyMesh.cpp

@@ -2225,5 +2225,5 @@ bool MyMesh::advert() {
 
 // To check if there is pending work
 bool MyMesh::hasPendingWork() const {
-  return _mgr->getOutboundTotal() > 0;
+  return _mgr->getOutboundTotal() > 0 || dirty_contacts_expiry != 0;
 }