Enhanced heater error messages.

Heating error messages now include E0, E1 or BED.
master
Marcio Teixeira 7 years ago
parent a0b1cda4b8
commit c150b82558

@ -13,7 +13,7 @@
* got disabled. * got disabled.
*/ */
#define LULZBOT_FW_VERSION ".25" // Change this with each update #define LULZBOT_FW_VERSION ".26" // Change this with each update
#if ( \ #if ( \
!defined(LULZBOT_Gladiola_Mini) && \ !defined(LULZBOT_Gladiola_Mini) && \
@ -1478,6 +1478,18 @@
#define LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD #define LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD
#define LULZBOT_SCROLL_LONG_FILE_NAMES #define LULZBOT_SCROLL_LONG_FILE_NAMES
#define LULZBOT_REORDERED_MENUS #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 #endif
/***************************** CUSTOM SPLASH SCREEN *****************************/ /***************************** CUSTOM SPLASH SCREEN *****************************/

@ -518,7 +518,11 @@ void Temperature::_temp_error(const int8_t e, const char * const serial_msg, con
if (!killed) { if (!killed) {
Running = false; Running = false;
killed = true; killed = true;
#if defined(LULZBOT_ENHANCED_TEMP_ERROR_MSG)
LULZBOT_ENHANCED_TEMP_ERROR_MSG(lcd_msg, e)
#else
kill(lcd_msg); kill(lcd_msg);
#endif
} }
else else
disable_all_heaters(); // paranoia disable_all_heaters(); // paranoia

Loading…
Cancel
Save