Browse Source

Draw flags followup

Scott Lahteine 2 years ago
parent
commit
931e243116
1 changed files with 8 additions and 5 deletions
  1. 8
    5
      Marlin/src/lcd/e3v2/marlinui/ui_status_480x272.cpp

+ 8
- 5
Marlin/src/lcd/e3v2/marlinui/ui_status_480x272.cpp View File

210
   #endif
210
   #endif
211
 
211
 
212
   #if HAS_HOTEND && HAS_HEATED_BED
212
   #if HAS_HOTEND && HAS_HEATED_BED
213
+    float tc, tt;
214
+    bool c_draw, t_draw, i_draw, ta;
213
     const bool isBed = heater < 0;
215
     const bool isBed = heater < 0;
214
-    bool c_draw, t_draw, i_draw;
215
     if (isBed) {
216
     if (isBed) {
216
-      const float tc = thermalManager.degBed(), tt = thermalManager.degTargetBed();
217
-      const bool ta = thermalManager.isHeatingBed();
217
+      tc = thermalManager.degBed();
218
+      tt = thermalManager.degTargetBed();
219
+      ta = thermalManager.isHeatingBed();
218
       c_draw = tc != old_bed_temp;
220
       c_draw = tc != old_bed_temp;
219
       t_draw = tt != old_bed_target;
221
       t_draw = tt != old_bed_target;
220
       i_draw = ta != old_bed_on;
222
       i_draw = ta != old_bed_on;
223
       old_bed_on = ta;
225
       old_bed_on = ta;
224
     }
226
     }
225
     else {
227
     else {
226
-      const float tc = thermalManager.degHotend(heater), tt = thermalManager.degTargetHotend(heater);
227
-      const bool ta = thermalManager.isHeatingHotend(heater);
228
+      tc = thermalManager.degHotend(heater);
229
+      tt = thermalManager.degTargetHotend(heater);
230
+      ta = thermalManager.isHeatingHotend(heater);
228
       c_draw = tc != old_temp[heater];
231
       c_draw = tc != old_temp[heater];
229
       t_draw = tt != old_target[heater];
232
       t_draw = tt != old_target[heater];
230
       i_draw = ta != old_on[heater];
233
       i_draw = ta != old_on[heater];

Loading…
Cancel
Save