Fix heater status display for advanced pause
This commit is contained in:
parent
ac33a378c0
commit
a32f7b329c
|
@ -5931,7 +5931,8 @@ inline void gcode_M17() {
|
||||||
idle();
|
idle();
|
||||||
wait_for_heatup = false;
|
wait_for_heatup = false;
|
||||||
HOTEND_LOOP() {
|
HOTEND_LOOP() {
|
||||||
if (abs(thermalManager.degHotend(e) - thermalManager.degTargetHotend(e)) > 3) {
|
const int16_t target_temp = thermalManager.degTargetHotend(e);
|
||||||
|
if (target_temp && abs(thermalManager.degHotend(e) - target_temp) > 3) {
|
||||||
wait_for_heatup = true;
|
wait_for_heatup = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -704,7 +704,9 @@ static void lcd_implementation_status_screen() {
|
||||||
lcd_print(' ');
|
lcd_print(' ');
|
||||||
lcd_print(itostr3(thermalManager.degHotend(active_extruder)));
|
lcd_print(itostr3(thermalManager.degHotend(active_extruder)));
|
||||||
lcd_print('/');
|
lcd_print('/');
|
||||||
lcd_print(itostr3(thermalManager.degTargetHotend(active_extruder)));
|
|
||||||
|
if (lcd_blink() || !thermalManager.is_heater_idle(active_extruder))
|
||||||
|
lcd_print(itostr3(thermalManager.degTargetHotend(active_extruder)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ADVANCED_PAUSE_FEATURE
|
#endif // ADVANCED_PAUSE_FEATURE
|
||||||
|
|
|
@ -844,10 +844,7 @@ static void lcd_implementation_status_screen() {
|
||||||
static void lcd_implementation_hotend_status(const uint8_t row) {
|
static void lcd_implementation_hotend_status(const uint8_t row) {
|
||||||
if (row < LCD_HEIGHT) {
|
if (row < LCD_HEIGHT) {
|
||||||
lcd.setCursor(LCD_WIDTH - 9, row);
|
lcd.setCursor(LCD_WIDTH - 9, row);
|
||||||
lcd.print(LCD_STR_THERMOMETER[0]);
|
_draw_heater_status(active_extruder, LCD_STR_THERMOMETER[0], lcd_blink());
|
||||||
lcd.print(itostr3(thermalManager.degHotend(active_extruder)));
|
|
||||||
lcd.print('/');
|
|
||||||
lcd.print(itostr3(thermalManager.degTargetHotend(active_extruder)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue