temp_runaway_check() parameter _heater_id should be uint8_t
Saves 58 bytes of flash
This commit is contained in:
parent
261f311825
commit
f81db56793
|
|
@ -225,7 +225,7 @@ static float temp_runaway_target[4];
|
||||||
static uint32_t temp_runaway_timer[4];
|
static uint32_t temp_runaway_timer[4];
|
||||||
static uint16_t temp_runaway_error_counter[4];
|
static uint16_t temp_runaway_error_counter[4];
|
||||||
|
|
||||||
static void temp_runaway_check(int _heater_id, float _target_temperature, float _current_temperature, float _output, bool _isbed);
|
static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, float _current_temperature, float _output, bool _isbed);
|
||||||
static void temp_runaway_stop(bool isPreheat, bool isBed);
|
static void temp_runaway_stop(bool isPreheat, bool isBed);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -683,7 +683,7 @@ void manage_heater()
|
||||||
temp_runaway_check(0, target_temperature_bed, current_temperature_bed, (int)soft_pwm_bed, true);
|
temp_runaway_check(0, target_temperature_bed, current_temperature_bed, (int)soft_pwm_bed, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(int e = 0; e < EXTRUDERS; e++)
|
for(uint8_t e = 0; e < EXTRUDERS; e++)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef TEMP_RUNAWAY_EXTRUDER_HYSTERESIS
|
#ifdef TEMP_RUNAWAY_EXTRUDER_HYSTERESIS
|
||||||
|
|
@ -1240,7 +1240,7 @@ void tp_init()
|
||||||
}
|
}
|
||||||
|
|
||||||
#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)
|
||||||
void temp_runaway_check(int _heater_id, float _target_temperature, float _current_temperature, float _output, bool _isbed)
|
void temp_runaway_check(uint8_t _heater_id, float _target_temperature, float _current_temperature, float _output, bool _isbed)
|
||||||
{
|
{
|
||||||
float __delta;
|
float __delta;
|
||||||
float __hysteresis = 0;
|
float __hysteresis = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue