Restore the "MINTEMP * fixed" message

Set the LCD messages with the correct priority
This commit is contained in:
Yuri D'Elia 2022-07-18 16:28:00 +02:00
parent 4ca0012077
commit 49a288e6cf

View File

@ -1636,17 +1636,17 @@ public:
// i.e. do not transfer to state 1 // i.e. do not transfer to state 1
break; break;
case States::TempAboveMintemp: // the temperature has risen above the hysteresis check case States::TempAboveMintemp: // the temperature has risen above the hysteresis check
lcd_setalertstatuspgm(m2); lcd_setalertstatuspgm(m2, LCD_STATUS_CRITICAL);
substep(States::ShowMintemp); substep(States::ShowMintemp);
last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED; last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED;
break; break;
case States::ShowPleaseRestart: // displaying "Please restart" case States::ShowPleaseRestart: // displaying "Please restart"
lcd_setalertstatuspgm(m1); lcd_setalertstatuspgm(m1, LCD_STATUS_CRITICAL);
substep(States::ShowMintemp); substep(States::ShowMintemp);
last_alert_sent_to_lcd = LCDALERT_PLEASERESTART; last_alert_sent_to_lcd = LCDALERT_PLEASERESTART;
break; break;
case States::ShowMintemp: // displaying "MINTEMP fixed" case States::ShowMintemp: // displaying "MINTEMP fixed"
lcd_setalertstatuspgm(m2); lcd_setalertstatuspgm(m2, LCD_STATUS_CRITICAL);
substep(States::ShowPleaseRestart); substep(States::ShowPleaseRestart);
last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED; last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED;
break; break;
@ -1702,7 +1702,7 @@ void handle_temp_error()
if(temp_error_state.assert) { if(temp_error_state.assert) {
menu_set_serious_error(SERIOUS_ERR_MINTEMP_HEATER); menu_set_serious_error(SERIOUS_ERR_MINTEMP_HEATER);
min_temp_error(temp_error_state.index); min_temp_error(temp_error_state.index);
} else if( menu_is_serious_error(SERIOUS_ERR_MINTEMP_HEATER) ) { } else {
// no recovery, just force the user to restart the printer // no recovery, just force the user to restart the printer
// which is a safer variant than just continuing printing // which is a safer variant than just continuing printing
// The automaton also checks for hysteresis - the temperature must have reached a few degrees above the MINTEMP, before // The automaton also checks for hysteresis - the temperature must have reached a few degrees above the MINTEMP, before
@ -1716,7 +1716,7 @@ void handle_temp_error()
if(temp_error_state.assert) { if(temp_error_state.assert) {
menu_set_serious_error(SERIOUS_ERR_MINTEMP_BED); menu_set_serious_error(SERIOUS_ERR_MINTEMP_BED);
bed_min_temp_error(); bed_min_temp_error();
} else if( menu_is_serious_error(SERIOUS_ERR_MINTEMP_BED) ){ } else {
// no recovery, just force the user to restart the printer // no recovery, just force the user to restart the printer
// which is a safer variant than just continuing printing // which is a safer variant than just continuing printing
alert_automaton_bed.step(current_temperature_bed, BED_MINTEMP + TEMP_HYSTERESIS); alert_automaton_bed.step(current_temperature_bed, BED_MINTEMP + TEMP_HYSTERESIS);