From dffb5a7a79892d62e49974f8e5625545d5ea2474 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 19 May 2014 11:07:51 +0200 Subject: [PATCH] Bad structure alignment (the compiler does the job, but it's better to write it so we see where are the lost bits) --- radio/src/switches.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/switches.cpp b/radio/src/switches.cpp index fd9570e5e..036cb9456 100644 --- a/radio/src/switches.cpp +++ b/radio/src/switches.cpp @@ -42,7 +42,10 @@ PACK(typedef struct { uint8_t state:1; #if defined(CPUARM) uint8_t ddState:2; + uint8_t spare:5; uint8_t ddTimer; +#else + uint8_t spare:7; #endif int16_t lastValue; }) lsw_struct;