From 6b4c891b3636199499be79861ed787200c2d20ef Mon Sep 17 00:00:00 2001 From: PgSocks Date: Mon, 13 Feb 2023 16:45:08 -0600 Subject: [PATCH] Make preamble a const The preamble is always 0x55. It should be a const in the header. --- include/message.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/message.h b/include/message.h index 621cd02..c9918c4 100644 --- a/include/message.h +++ b/include/message.h @@ -5,6 +5,8 @@ #define PACKED __attribute__((__packed__)) +const uint8_t PREAMBLE = 0x55; + struct PACKED Header { // The preamble marks the start of a message and is always 0x55