Browse Source

Add a heating indicator X offset

Scott Lahteine 7 years ago
parent
commit
07db5638e2
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 5
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h View File

394
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
394
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
395
 }
395
 }
396
 
396
 
397
+#ifndef HEAT_INDICATOR_X
398
+  #define HEAT_INDICATOR_X 8
399
+#endif
400
+
397
 FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, const bool blink) {
401
 FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, const bool blink) {
398
   #if !HEATER_IDLE_HANDLER
402
   #if !HEATER_IDLE_HANDLER
399
     UNUSED(blink);
403
     UNUSED(blink);
423
     _draw_centered_temp((isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)) + 0.5, x, 28);
427
     _draw_centered_temp((isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)) + 0.5, x, 28);
424
 
428
 
425
   if (PAGE_CONTAINS(17, 20)) {
429
   if (PAGE_CONTAINS(17, 20)) {
426
-    const uint8_t h = isBed ? 7 : 8,
430
+    const uint8_t h = isBed ? 7 : HEAT_INDICATOR_X,
427
                   y = isBed ? 18 : 17;
431
                   y = isBed ? 18 : 17;
428
     if (isBed ? thermalManager.isHeatingBed() : thermalManager.isHeatingHotend(heater)) {
432
     if (isBed ? thermalManager.isHeatingBed() : thermalManager.isHeatingHotend(heater)) {
429
       u8g.setColorIndex(0); // white on black
433
       u8g.setColorIndex(0); // white on black

Loading…
Cancel
Save