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