mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 02:36:11 +00:00
fix: move EXPECTED_ACK_TABLE_SIZE define before class for isAckPending
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
24474f67fa
commit
9e5c0e79e7
@@ -85,6 +85,8 @@ struct AdvertPath {
|
|||||||
uint8_t path[MAX_PATH_SIZE];
|
uint8_t path[MAX_PATH_SIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define EXPECTED_ACK_TABLE_SIZE 8
|
||||||
|
|
||||||
class MyMesh : public BaseChatMesh, public DataStoreHost {
|
class MyMesh : public BaseChatMesh, public DataStoreHost {
|
||||||
public:
|
public:
|
||||||
MyMesh(mesh::Radio &radio, mesh::RNG &rng, mesh::RTCClock &rtc, SimpleMeshTables &tables, DataStore& store, AbstractUITask* ui=NULL);
|
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;
|
uint32_t ack;
|
||||||
ContactInfo* contact;
|
ContactInfo* contact;
|
||||||
};
|
};
|
||||||
#define EXPECTED_ACK_TABLE_SIZE 8
|
|
||||||
AckTableEntry expected_ack_table[EXPECTED_ACK_TABLE_SIZE]; // circular table
|
AckTableEntry expected_ack_table[EXPECTED_ACK_TABLE_SIZE]; // circular table
|
||||||
int next_ack_idx;
|
int next_ack_idx;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user