structs must be PACKED

This commit is contained in:
iceman1001 2020-10-15 19:31:33 +02:00
parent 4ba31596d5
commit 8bb762dc5b

View file

@ -49,7 +49,7 @@ typedef struct {
uint8_t addresses[4];
uint8_t address;
uint8_t word[4];
} em4x50_data_t;
} PACKED em4x50_data_t;
typedef struct {
uint8_t byte[4];
@ -60,6 +60,6 @@ typedef struct {
bool cparity[8];
bool stopparity;
bool parity;
} em4x50_word_t;
} PACKED em4x50_word_t;
#endif /* EM4X50_H__ */