Remove high and low byte union for message length

This commit is contained in:
2023-02-21 14:23:58 -06:00
parent ca82982a76
commit 6e10db0e07
3 changed files with 4 additions and 10 deletions
+1 -7
View File
@@ -11,13 +11,7 @@ struct PACKED Header {
uint8_t preamble;
// The length of the message includes the preamble and CRC16 at the end
union {
uint16_t length;
struct {
uint8_t length_l;
uint8_t length_h;
};
};
uint16_t length;
// This is a CRC8 checksum for the preamble and length together
uint8_t crc;