From 57abffda1b1810048bbc5647a928acc56deb1675 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 7 Dec 2021 11:09:58 +0100 Subject: [PATCH] Update temperature-related error message to use LCD_STATUS_CRITICAL --- Firmware/temperature.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 3765589b..c753db19 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -1483,13 +1483,12 @@ uint8_t last_alert_sent_to_lcd = LCDALERT_NONE; //! update the current temperature error message //! @param type short error abbreviation (PROGMEM) -//! @param func optional lcd update function (lcd_setalertstatus when first setting the error) -void temp_update_messagepgm(const char* PROGMEM type, void (*func)(const char*) = lcd_updatestatus) +void temp_update_messagepgm(const char* PROGMEM type) { char msg[LCD_WIDTH]; strcpy_P(msg, PSTR("Err: ")); strcat_P(msg, type); - (*func)(msg); + lcd_setalertstatus(msg, LCD_STATUS_CRITICAL); } //! signal a temperature error on both the lcd and serial @@ -1497,7 +1496,7 @@ void temp_update_messagepgm(const char* PROGMEM type, void (*func)(const char*) //! @param e optional extruder index for hotend errors void temp_error_messagepgm(const char* PROGMEM type, uint8_t e = EXTRUDERS) { - temp_update_messagepgm(type, lcd_setalertstatus); + temp_update_messagepgm(type); SERIAL_ERROR_START;