Make preamble a const

The preamble is always 0x55. It should be a const in the header.
This commit is contained in:
2023-02-21 14:23:58 -06:00
parent c4c5e394af
commit 6b4c891b36
+2
View File
@@ -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