diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index 1cad4c542..16b5de15b 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -13,7 +13,7 @@ * got disabled. */ -#define LULZBOT_FW_VERSION ".25" // Change this with each update +#define LULZBOT_FW_VERSION ".26" // Change this with each update #if ( \ !defined(LULZBOT_Gladiola_Mini) && \ @@ -1478,6 +1478,18 @@ #define LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD #define LULZBOT_SCROLL_LONG_FILE_NAMES #define LULZBOT_REORDERED_MENUS + #define LULZBOT_ENHANCED_TEMP_ERROR_MSG(msg, e) \ + { \ + char str[30] = {'\0'}; \ + strncpy(str, msg, 25); \ + switch(e) { \ + case -1: strcat(str, " BED"); break; \ + case 0: strcat(str, " E0"); break; \ + case 1: strcat(str, " E1"); break; \ + break; \ + } \ + kill(str); \ + } #endif /***************************** CUSTOM SPLASH SCREEN *****************************/ diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 1c7b3dc0b..7c2a8e2ac 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -518,7 +518,11 @@ void Temperature::_temp_error(const int8_t e, const char * const serial_msg, con if (!killed) { Running = false; killed = true; + #if defined(LULZBOT_ENHANCED_TEMP_ERROR_MSG) + LULZBOT_ENHANCED_TEMP_ERROR_MSG(lcd_msg, e) + #else kill(lcd_msg); + #endif } else disable_all_heaters(); // paranoia