Improve heating/cooling LCD messages (#10293)
This commit is contained in:
committed by
Scott Lahteine
parent
21a47b50f4
commit
8bc93c6f2b
@ -72,7 +72,11 @@ void GcodeSuite::M104() {
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
if (parser.value_celsius() > thermalManager.degHotend(e))
|
||||
lcd_status_printf_P(0, PSTR("E%i %s"), e + 1, MSG_HEATING);
|
||||
#if HOTENDS > 1
|
||||
lcd_status_printf_P(0, PSTR("E%i " MSG_HEATING), e + 1);
|
||||
#else
|
||||
LCD_MESSAGEPGM("E " MSG_HEATING);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -127,8 +131,13 @@ void GcodeSuite::M109() {
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
if (thermalManager.isHeatingHotend(target_extruder))
|
||||
lcd_status_printf_P(0, PSTR("E%i %s"), target_extruder + 1, MSG_HEATING);
|
||||
const bool heating = thermalManager.isHeatingHotend(target_extruder);
|
||||
if (heating || !no_wait_for_cooling)
|
||||
#if HOTENDS > 1
|
||||
lcd_status_printf_P(0, heating ? PSTR("E%i " MSG_HEATING) : PSTR("E%i " MSG_COOLING), target_extruder + 1);
|
||||
#else
|
||||
lcd_setstatusPGM(heating ? PSTR("E " MSG_HEATING) : PSTR("E " MSG_COOLING));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
else return;
|
||||
@ -234,7 +243,7 @@ void GcodeSuite::M109() {
|
||||
} while (wait_for_heatup && TEMP_CONDITIONS);
|
||||
|
||||
if (wait_for_heatup) {
|
||||
LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
|
||||
lcd_setstatusPGM(wants_to_cool ? PSTR(MSG_COOLING_COMPLETE) : PSTR(MSG_HEATING_COMPLETE));
|
||||
#if ENABLED(PRINTER_EVENT_LEDS)
|
||||
leds.set_white();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user