From 492052e04ecd3ab5a8125b93649455545ab2c30a Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 17 Dec 2011 16:43:45 +0000 Subject: [PATCH] Stupid compilers don't like when we mix uint16_t:14 and uint8_t:1 in the same struct --- src/myeeprom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/myeeprom.h b/src/myeeprom.h index 0182286a0..40474e820 100644 --- a/src/myeeprom.h +++ b/src/myeeprom.h @@ -231,8 +231,8 @@ PACK(typedef struct t_PhaseData { PACK(typedef struct t_TimerData { int8_t mode; // timer trigger source -> off, abs, stk, stk%, sw/!sw, !m_sw/!m_sw uint16_t val:14; - uint8_t persistent:1; - uint8_t dir:1; // 0=>Count Down, 1=>Count Up + uint16_t persistent:1; + uint16_t dir:1; // 0=>Count Down, 1=>Count Up }) TimerData; PACK(typedef struct t_ModelData {