From 5002c7b0f969a5c77738335ca77a75362ee4f393 Mon Sep 17 00:00:00 2001 From: UA1ZBE Date: Wed, 10 Jun 2026 13:17:39 +0300 Subject: [PATCH] Fix auto-advert: prevent sleep when advert is pending --- examples/relay_radio/MyMesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/relay_radio/MyMesh.cpp b/examples/relay_radio/MyMesh.cpp index ead3594..7955d18 100644 --- a/examples/relay_radio/MyMesh.cpp +++ b/examples/relay_radio/MyMesh.cpp @@ -2297,7 +2297,9 @@ bool MyMesh::advert() { // To check if there is pending work bool MyMesh::hasPendingWork() const { - return _mgr->getOutboundTotal() > 0 || dirty_contacts_expiry != 0; + return _mgr->getOutboundTotal() > 0 + || dirty_contacts_expiry != 0 + || millisHasNowPassed(_next_advert_ms); } float MyMesh::readTemperature() {