Skip to content

Commit b89f36a

Browse files
committed
Fix CONTACT_FLAG_AEAD bit collision with telemetry permissions
1 parent 545169e commit b89f36a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MeshCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// AEAD-4 (ChaChaPoly) encryption
2222
#define AEAD_TAG_SIZE 4
2323
#define AEAD_NONCE_SIZE 2
24-
#define CONTACT_FLAG_AEAD 0x02 // bit 1 of ContactInfo.flags (bit 0 = favourite)
24+
#define CONTACT_FLAG_AEAD 0x80 // bit 7 of ContactInfo.flags (bit 0 = favourite, bits 1-3 = telemetry perms)
2525
#define FEAT1_AEAD_SUPPORT 0x0001 // bit 0 of feat1 uint16_t
2626

2727
// AEAD nonce persistence

0 commit comments

Comments
 (0)