Make preamble a const
The preamble is always 0x55. It should be a const in the header.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user