From 07db5638e2659668385085465f114e20e4b37388 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 21 Jan 2018 02:03:44 -0600 Subject: [PATCH] Add a heating indicator X offset --- Marlin/src/lcd/ultralcd_impl_DOGM.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/src/lcd/ultralcd_impl_DOGM.h b/Marlin/src/lcd/ultralcd_impl_DOGM.h index d3994b53b4..4b94ed42d0 100644 --- a/Marlin/src/lcd/ultralcd_impl_DOGM.h +++ b/Marlin/src/lcd/ultralcd_impl_DOGM.h @@ -394,6 +394,10 @@ FORCE_INLINE void _draw_centered_temp(const int16_t temp, const uint8_t x, const lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); } +#ifndef HEAT_INDICATOR_X + #define HEAT_INDICATOR_X 8 +#endif + FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, const bool blink) { #if !HEATER_IDLE_HANDLER UNUSED(blink); @@ -423,7 +427,7 @@ FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, cons _draw_centered_temp((isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)) + 0.5, x, 28); if (PAGE_CONTAINS(17, 20)) { - const uint8_t h = isBed ? 7 : 8, + const uint8_t h = isBed ? 7 : HEAT_INDICATOR_X, y = isBed ? 18 : 17; if (isBed ? thermalManager.isHeatingBed() : thermalManager.isHeatingHotend(heater)) { u8g.setColorIndex(0); // white on black