Bad structure alignment (the compiler does the job, but it's better to

write it so we see where are the lost bits)
This commit is contained in:
bsongis
2014-05-19 11:07:51 +02:00
parent b9ee91b08d
commit dffb5a7a79
+3
View File
@@ -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;