瀏覽代碼

* 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;
 }