diff --git a/states.h b/states.h --- a/states.h +++ b/states.h @@ -8,7 +8,7 @@ typedef struct { uint8_t state; int32_t setpoint; uint8_t pid_enabled; - uint8_t tc_errno; + uint8_t error_code; } therm_status_t; typedef union @@ -21,7 +21,7 @@ typedef union uint32_t k_i; uint32_t k_d; int32_t temp_offset; - uint32_t ignore_tc_error; + uint32_t ignore_error; int32_t setpoint_brew; int32_t setpoint_steam; } val; @@ -52,4 +52,12 @@ enum state { STATE_TC_ERROR, }; +enum GOTO_MODE { + MODE_HEAT = 0, + MODE_SETUP, + MODE_RESET, + MODE_BOOTLOADER, + MODE_SIZE, +}; + #endif