Remove high and low byte union for message length
This commit is contained in:
+1
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user