From 49a288e6cf77bc1699f767932b714122719bf660 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 18 Jul 2022 16:28:00 +0200 Subject: [PATCH] Restore the "MINTEMP * fixed" message Set the LCD messages with the correct priority --- Firmware/temperature.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 6d707eb2..bf8c2bb2 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -1636,17 +1636,17 @@ public: // i.e. do not transfer to state 1 break; case States::TempAboveMintemp: // the temperature has risen above the hysteresis check - lcd_setalertstatuspgm(m2); + lcd_setalertstatuspgm(m2, LCD_STATUS_CRITICAL); substep(States::ShowMintemp); last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED; break; case States::ShowPleaseRestart: // displaying "Please restart" - lcd_setalertstatuspgm(m1); + lcd_setalertstatuspgm(m1, LCD_STATUS_CRITICAL); substep(States::ShowMintemp); last_alert_sent_to_lcd = LCDALERT_PLEASERESTART; break; case States::ShowMintemp: // displaying "MINTEMP fixed" - lcd_setalertstatuspgm(m2); + lcd_setalertstatuspgm(m2, LCD_STATUS_CRITICAL); substep(States::ShowPleaseRestart); last_alert_sent_to_lcd = LCDALERT_MINTEMPFIXED; break; @@ -1702,7 +1702,7 @@ void handle_temp_error() if(temp_error_state.assert) { menu_set_serious_error(SERIOUS_ERR_MINTEMP_HEATER); 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 // 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 @@ -1716,7 +1716,7 @@ void handle_temp_error() if(temp_error_state.assert) { menu_set_serious_error(SERIOUS_ERR_MINTEMP_BED); 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 // which is a safer variant than just continuing printing alert_automaton_bed.step(current_temperature_bed, BED_MINTEMP + TEMP_HYSTERESIS);