|
@ -582,8 +582,8 @@ FORCE_INLINE void _draw_axis_label(const AxisEnum axis, const char* const pstr, |
|
|
FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, const bool blink) { |
|
|
FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, const bool blink) { |
|
|
const bool isBed = heater < 0; |
|
|
const bool isBed = heater < 0; |
|
|
|
|
|
|
|
|
const float t1 = (isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)); |
|
|
const float t1 = (isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)), |
|
|
const float t2 = (isBed ? thermalManager.degTargetBed() : thermalManager.degTargetHotend(heater)); |
|
|
t2 = (isBed ? thermalManager.degTargetBed() : thermalManager.degTargetHotend(heater)); |
|
|
|
|
|
|
|
|
if (prefix >= 0) lcd.print(prefix); |
|
|
if (prefix >= 0) lcd.print(prefix); |
|
|
|
|
|
|
|
@ -592,11 +592,11 @@ FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, co |
|
|
|
|
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_FEATURE) |
|
|
#if ENABLED(ADVANCED_PAUSE_FEATURE) |
|
|
const bool is_idle = (!isBed ? thermalManager.is_heater_idle(heater) : |
|
|
const bool is_idle = (!isBed ? thermalManager.is_heater_idle(heater) : |
|
|
#if HAS_TEMP_BED |
|
|
#if HAS_TEMP_BED |
|
|
thermalManager.is_bed_idle() |
|
|
thermalManager.is_bed_idle() |
|
|
#else |
|
|
#else |
|
|
false |
|
|
false |
|
|
#endif |
|
|
#endif |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if (!blink && is_idle) { |
|
|
if (!blink && is_idle) { |
|
@ -606,7 +606,7 @@ FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, co |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
lcd.print(itostr3left(t2 + 0.5)); |
|
|
lcd.print(itostr3left(t2 + 0.5)); |
|
|
|
|
|
|
|
|
if (prefix >= 0) { |
|
|
if (prefix >= 0) { |
|
|
lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); |
|
|
lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); |
|
@ -831,7 +831,7 @@ static void lcd_implementation_status_screen() { |
|
|
const uint8_t slen = lcd_strlen(lcd_status_message); |
|
|
const uint8_t slen = lcd_strlen(lcd_status_message); |
|
|
if (slen > LCD_WIDTH) { |
|
|
if (slen > LCD_WIDTH) { |
|
|
// Skip any non-printing bytes
|
|
|
// Skip any non-printing bytes
|
|
|
while (!charset_mapper(lcd_status_message[status_scroll_pos])) ++status_scroll_pos; |
|
|
while (!PRINTABLE(lcd_status_message[status_scroll_pos])) ++status_scroll_pos; |
|
|
if (++status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0; |
|
|
if (++status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0; |
|
|
} |
|
|
} |
|
|
#else |
|
|
#else |
|
|