Modified hasPendingWork to return bool

Bu işleme şunda yer alıyor:
Kevin Le
2025-12-24 11:00:34 +07:00
ebeveyn 5c6c15942b
işleme 1706f759b7
3 değiştirilmiş dosya ile 6 ekleme ve 6 silme
+3 -3
Dosyayı Görüntüle
@@ -1116,7 +1116,7 @@ void MyMesh::loop() {
last_millis = now;
}
// To get the current pending work
int MyMesh::hasPendingWork() const {
return _mgr->getOutboundCount(0xFFFFFFFF);
// To check if there is pending work
bool MyMesh::hasPendingWork() const {
return _mgr->getOutboundCount(0xFFFFFFFF) > 0;
}