From 8bb762dc5b067e23854f678b7dfb7cf609ffc7a4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 15 Oct 2020 19:31:33 +0200 Subject: [PATCH] structs must be PACKED --- include/em4x50.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/em4x50.h b/include/em4x50.h index b70072c32..4542e7bec 100644 --- a/include/em4x50.h +++ b/include/em4x50.h @@ -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__ */