Change temp_runaway_status from float to uint8_t and its enum
Saves 90 bytes of flash, and 12 bytes of SRAM
This commit is contained in:
parent
b716c208d7
commit
db1e5a203b
|
|
@ -204,7 +204,7 @@ static float analog2tempAmbient(int raw);
|
||||||
#endif
|
#endif
|
||||||
static void updateTemperaturesFromRawValues();
|
static void updateTemperaturesFromRawValues();
|
||||||
|
|
||||||
enum TempRunawayStates
|
enum TempRunawayStates : uint8_t
|
||||||
{
|
{
|
||||||
TempRunaway_INACTIVE = 0,
|
TempRunaway_INACTIVE = 0,
|
||||||
TempRunaway_PREHEAT = 1,
|
TempRunaway_PREHEAT = 1,
|
||||||
|
|
@ -220,7 +220,7 @@ enum TempRunawayStates
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
#if (defined (TEMP_RUNAWAY_BED_HYSTERESIS) && TEMP_RUNAWAY_BED_TIMEOUT > 0) || (defined (TEMP_RUNAWAY_EXTRUDER_HYSTERESIS) && TEMP_RUNAWAY_EXTRUDER_TIMEOUT > 0)
|
#if (defined (TEMP_RUNAWAY_BED_HYSTERESIS) && TEMP_RUNAWAY_BED_TIMEOUT > 0) || (defined (TEMP_RUNAWAY_EXTRUDER_HYSTERESIS) && TEMP_RUNAWAY_EXTRUDER_TIMEOUT > 0)
|
||||||
static float temp_runaway_status[4];
|
static uint8_t temp_runaway_status[4];
|
||||||
static float temp_runaway_target[4];
|
static float temp_runaway_target[4];
|
||||||
static float temp_runaway_timer[4];
|
static float temp_runaway_timer[4];
|
||||||
static int temp_runaway_error_counter[4];
|
static int temp_runaway_error_counter[4];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue