diff --git a/states.h b/states.h --- a/states.h +++ b/states.h @@ -11,21 +11,24 @@ typedef struct { uint8_t tc_errno; } therm_status_t; -typedef struct { - uint8_t boottobrew; - uint8_t temp_units; - uint16_t windup_guard; - uint16_t k_p; - uint16_t k_i; - uint16_t k_d; - int16_t temp_offset; - uint8_t ignore_tc_error; - int16_t setpoint_brew; - int16_t setpoint_steam; +typedef union +{ + struct { + uint32_t boottobrew; + uint32_t temp_units; + uint32_t windup_guard; + uint32_t k_p; + uint32_t k_i; + uint32_t k_d; + int32_t temp_offset; + uint32_t ignore_tc_error; + int32_t setpoint_brew; + int32_t setpoint_steam; + } val; + + uint16_t data[128]; } therm_settings_t; - - enum tempunits { TEMP_UNITS_CELSIUS = 0, TEMP_UNITS_FAHRENHEIT,