Skip to content

Commit

Permalink
Fix bed-off redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 13, 2021
1 parent 9084d88 commit e77c2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/lcd/e3v2/marlinui/ui_status_480x272.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ FORCE_INLINE void _draw_heater_status(const heater_id_t heater, uint16_t x, uint
const bool c_draw = tc != (isBed ? old_bed_temp : old_temp[heater]),
t_draw = tt != (isBed ? old_bed_target : old_target[heater]),
i_draw = ta != (isBed ? old_bed_on : old_on[heater]);
if (isBed) { old_bed_temp = tc; old_bed_target = tt; old_bed_on = i_draw; }
if (isBed) { old_bed_temp = tc; old_bed_target = tt; old_bed_on = ta; }
else { old_temp[heater] = tc; old_target[heater] = tt; old_on[heater] = ta; }
#elif HAS_HOTEND
const bool isBed = false;
constexpr bool isBed = false;
const float tc = thermalManager.degHotend(heater), tt = thermalManager.degTargetHotend(heater);
const uint8_t ta = thermalManager.isHeatingHotend(heater);
const bool c_draw = tc != old_bed_temp, t_draw = tt != old_bed_target, i_draw = ta != old_bed_on;
Expand Down

0 comments on commit e77c2c5

Please sign in to comment.