From 7b7b56beb0656960e33cf1c495af12c9d40a7c03 Mon Sep 17 00:00:00 2001 From: Wessel Nieboer Date: Sun, 7 Jun 2026 10:18:42 +0200 Subject: [PATCH] Fix CONTACT_FLAG_AEAD bit collision with telemetry permissions --- src/MeshCore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MeshCore.h b/src/MeshCore.h index 089acaaf..2851a23c 100644 --- a/src/MeshCore.h +++ b/src/MeshCore.h @@ -21,7 +21,7 @@ // AEAD-4 (ChaChaPoly) encryption #define AEAD_TAG_SIZE 4 #define AEAD_NONCE_SIZE 2 -#define CONTACT_FLAG_AEAD 0x02 // bit 1 of ContactInfo.flags (bit 0 = favourite) +#define CONTACT_FLAG_AEAD 0x80 // bit 7 of ContactInfo.flags (bit 0 = favourite, bits 1-3 = telemetry perms) #define FEAT1_AEAD_SUPPORT 0x0001 // bit 0 of feat1 uint16_t // AEAD nonce persistence