Draw flags followup
This commit is contained in:
@@ -210,11 +210,13 @@ FORCE_INLINE void _draw_heater_status(const heater_id_t heater, const uint16_t x
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_HOTEND && HAS_HEATED_BED
|
#if HAS_HOTEND && HAS_HEATED_BED
|
||||||
|
float tc, tt;
|
||||||
|
bool c_draw, t_draw, i_draw, ta;
|
||||||
const bool isBed = heater < 0;
|
const bool isBed = heater < 0;
|
||||||
bool c_draw, t_draw, i_draw;
|
|
||||||
if (isBed) {
|
if (isBed) {
|
||||||
const float tc = thermalManager.degBed(), tt = thermalManager.degTargetBed();
|
tc = thermalManager.degBed();
|
||||||
const bool ta = thermalManager.isHeatingBed();
|
tt = thermalManager.degTargetBed();
|
||||||
|
ta = thermalManager.isHeatingBed();
|
||||||
c_draw = tc != old_bed_temp;
|
c_draw = tc != old_bed_temp;
|
||||||
t_draw = tt != old_bed_target;
|
t_draw = tt != old_bed_target;
|
||||||
i_draw = ta != old_bed_on;
|
i_draw = ta != old_bed_on;
|
||||||
@@ -223,8 +225,9 @@ FORCE_INLINE void _draw_heater_status(const heater_id_t heater, const uint16_t x
|
|||||||
old_bed_on = ta;
|
old_bed_on = ta;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const float tc = thermalManager.degHotend(heater), tt = thermalManager.degTargetHotend(heater);
|
tc = thermalManager.degHotend(heater);
|
||||||
const bool ta = thermalManager.isHeatingHotend(heater);
|
tt = thermalManager.degTargetHotend(heater);
|
||||||
|
ta = thermalManager.isHeatingHotend(heater);
|
||||||
c_draw = tc != old_temp[heater];
|
c_draw = tc != old_temp[heater];
|
||||||
t_draw = tt != old_target[heater];
|
t_draw = tt != old_target[heater];
|
||||||
i_draw = ta != old_on[heater];
|
i_draw = ta != old_on[heater];
|
||||||
|
Reference in New Issue
Block a user