diff options
| author | Scott Powell <sqij@protonmail.com> | 2025-09-08 19:22:59 +1000 |
|---|---|---|
| committer | Scott Powell <sqij@protonmail.com> | 2025-09-08 19:22:59 +1000 |
| commit | 74dea260e54b429762c191cef351ffb146ab91b7 (patch) | |
| tree | eddc6bb652f56edaa48e157c21a47d3fb3d8025d /examples/simple_secure_chat/main.cpp | |
| parent | 6a9dedf0b4309cae952a4e29cf2c0e1ab5fc5cd7 (diff) | |
* proposed change for re-trying reciprocal path transmit
Diffstat (limited to 'examples/simple_secure_chat/main.cpp')
| -rw-r--r-- | examples/simple_secure_chat/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/simple_secure_chat/main.cpp b/examples/simple_secure_chat/main.cpp index a6b048a1..eac35898 100644 --- a/examples/simple_secure_chat/main.cpp +++ b/examples/simple_secure_chat/main.cpp @@ -217,18 +217,18 @@ protected: saveContacts(); } - bool processAck(const uint8_t *data) override { + ContactInfo* processAck(const uint8_t *data) override { if (memcmp(data, &expected_ack_crc, 4) == 0) { // got an ACK from recipient Serial.printf(" Got ACK! (round trip: %d millis)\n", _ms->getMillis() - last_msg_sent); // NOTE: the same ACK can be received multiple times! expected_ack_crc = 0; // reset our expected hash, now that we have received ACK - return true; + return NULL; // TODO: really should return ContactInfo pointer } //uint32_t crc; //memcpy(&crc, data, 4); //MESH_DEBUG_PRINTLN("unknown ACK received: %08X (expected: %08X)", crc, expected_ack_crc); - return false; + return NULL; } void onMessageRecv(const ContactInfo& from, mesh::Packet* pkt, uint32_t sender_timestamp, const char *text) override { |
