Make preamble a const

The preamble is always 0x55. It should be a const in the header.
refactor
PgSocks 2 years ago
parent c4c5e394af
commit 6b4c891b36

@ -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

Loading…
Cancel
Save