From 9e5c0e79e78e9b1f1574fe380472bacefda5357a Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 14 May 2026 11:30:43 +0200 Subject: [PATCH] fix: move EXPECTED_ACK_TABLE_SIZE define before class for isAckPending MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #define was inside the private section, after isAckPending() which references it — preprocessor hadn't seen the symbol yet at that point. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/MyMesh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/MyMesh.h b/examples/companion_radio/MyMesh.h index 5066b4bf..067406d5 100644 --- a/examples/companion_radio/MyMesh.h +++ b/examples/companion_radio/MyMesh.h @@ -85,6 +85,8 @@ struct AdvertPath { uint8_t path[MAX_PATH_SIZE]; }; +#define EXPECTED_ACK_TABLE_SIZE 8 + class MyMesh : public BaseChatMesh, public DataStoreHost { public: MyMesh(mesh::Radio &radio, mesh::RNG &rng, mesh::RTCClock &rtc, SimpleMeshTables &tables, DataStore& store, AbstractUITask* ui=NULL); @@ -253,7 +255,6 @@ private: uint32_t ack; ContactInfo* contact; }; - #define EXPECTED_ACK_TABLE_SIZE 8 AckTableEntry expected_ack_table[EXPECTED_ACK_TABLE_SIZE]; // circular table int next_ack_idx;