|
@@ -236,18 +236,12 @@ FORCE_INLINE void _draw_centered_temp(const celsius_t temp, const uint8_t tx, co
|
236
|
236
|
#define HOTEND_DOT false
|
237
|
237
|
#endif
|
238
|
238
|
|
239
|
|
- #if ANIM_HOTEND && BOTH(STATUS_HOTEND_INVERTED, STATUS_HOTEND_NUMBERLESS)
|
240
|
|
- #define OFF_BMP(N) status_hotend_b_bmp
|
241
|
|
- #define ON_BMP(N) status_hotend_a_bmp
|
242
|
|
- #elif ANIM_HOTEND && DISABLED(STATUS_HOTEND_INVERTED) && ENABLED(STATUS_HOTEND_NUMBERLESS)
|
243
|
|
- #define OFF_BMP(N) status_hotend_a_bmp
|
244
|
|
- #define ON_BMP(N) status_hotend_b_bmp
|
245
|
|
- #elif BOTH(ANIM_HOTEND, STATUS_HOTEND_INVERTED)
|
246
|
|
- #define OFF_BMP(N) status_hotend##N##_b_bmp
|
247
|
|
- #define ON_BMP(N) status_hotend##N##_a_bmp
|
|
239
|
+ #if ENABLED(STATUS_HOTEND_NUMBERLESS)
|
|
240
|
+ #define OFF_BMP(N) TERN(STATUS_HOTEND_INVERTED, status_hotend_b_bmp, status_hotend_a_bmp)
|
|
241
|
+ #define ON_BMP(N) TERN(STATUS_HOTEND_INVERTED, status_hotend_a_bmp, status_hotend_b_bmp)
|
248
|
242
|
#else
|
249
|
|
- #define OFF_BMP(N) status_hotend##N##_a_bmp
|
250
|
|
- #define ON_BMP(N) status_hotend##N##_b_bmp
|
|
243
|
+ #define OFF_BMP(N) TERN(STATUS_HOTEND_INVERTED, status_hotend##N##_b_bmp, status_hotend##N##_a_bmp)
|
|
244
|
+ #define ON_BMP(N) TERN(STATUS_HOTEND_INVERTED, status_hotend##N##_a_bmp, status_hotend##N##_b_bmp)
|
251
|
245
|
#endif
|
252
|
246
|
|
253
|
247
|
#if STATUS_HOTEND_BITMAPS > 1
|
|
@@ -275,20 +269,18 @@ FORCE_INLINE void _draw_centered_temp(const celsius_t temp, const uint8_t tx, co
|
275
|
269
|
uint8_t tall = uint8_t(perc * BAR_TALL + 0.5f);
|
276
|
270
|
NOMORE(tall, BAR_TALL);
|
277
|
271
|
|
278
|
|
- #if ANIM_HOTEND
|
279
|
|
- // Draw hotend bitmap, either whole or split by the heating percent
|
280
|
|
- const uint8_t hx = STATUS_HOTEND_X(heater_id),
|
281
|
|
- bw = STATUS_HOTEND_BYTEWIDTH(heater_id);
|
282
|
|
- #if ENABLED(STATUS_HEAT_PERCENT)
|
283
|
|
- if (isHeat && tall <= BAR_TALL) {
|
284
|
|
- const uint8_t ph = STATUS_HEATERS_HEIGHT - 1 - tall;
|
285
|
|
- u8g.drawBitmapP(hx, STATUS_HEATERS_Y, bw, ph, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), false));
|
286
|
|
- u8g.drawBitmapP(hx, STATUS_HEATERS_Y + ph, bw, tall + 1, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), true) + ph * bw);
|
287
|
|
- }
|
288
|
|
- else
|
289
|
|
- #endif
|
290
|
|
- u8g.drawBitmapP(hx, STATUS_HEATERS_Y, bw, STATUS_HEATERS_HEIGHT, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), isHeat));
|
|
272
|
+ // Draw hotend bitmap, either whole or split by the heating percent
|
|
273
|
+ const uint8_t hx = STATUS_HOTEND_X(heater_id),
|
|
274
|
+ bw = STATUS_HOTEND_BYTEWIDTH(heater_id);
|
|
275
|
+ #if ENABLED(STATUS_HEAT_PERCENT)
|
|
276
|
+ if (isHeat && tall <= BAR_TALL) {
|
|
277
|
+ const uint8_t ph = STATUS_HEATERS_HEIGHT - 1 - tall;
|
|
278
|
+ u8g.drawBitmapP(hx, STATUS_HEATERS_Y, bw, ph, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), false));
|
|
279
|
+ u8g.drawBitmapP(hx, STATUS_HEATERS_Y + ph, bw, tall + 1, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), true) + ph * bw);
|
|
280
|
+ }
|
|
281
|
+ else
|
291
|
282
|
#endif
|
|
283
|
+ u8g.drawBitmapP(hx, STATUS_HEATERS_Y, bw, STATUS_HEATERS_HEIGHT, HOTEND_BITMAP(TERN(HAS_MMU, active_extruder, heater_id), isHeat));
|
292
|
284
|
|
293
|
285
|
} // PAGE_CONTAINS
|
294
|
286
|
|