From ac11fa443490f12454d9f8d9f9b4171d5744a67b Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Fri, 26 Dec 2025 12:24:10 +0100 Subject: [PATCH] Packed the mailbox event enum so that the mailbox structure size matches the gateway's structure size --- src/app/definition.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/definition.h b/src/app/definition.h index 6fb9550..6de84e8 100644 --- a/src/app/definition.h +++ b/src/app/definition.h @@ -48,8 +48,9 @@ typedef enum MAILBOX_LETTER = 0, MAILBOX_PACKAGE, MAILBOX_COLLECTED, + MAILBOX_TEST, MAILBOX_UNKNOWN, -} MAILBOX_EVENT_e; +} __attribute__((__packed__)) MAILBOX_EVENT_e; //Payload structure typedef struct