From 5adb16220458e2414b5f42afc2fdf56485281498 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 3 Aug 2015 12:45:22 -0700 Subject: [PATCH] Show "bed" instead of "9" on bed thermal error (PR#2584) --- Marlin/temperature.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 0b5599fa8cf..15a932865c4 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -1052,8 +1052,11 @@ void thermal_runaway_protection(int *state, unsigned long *timer, float temperat else if ( (millis() - *timer) > ((unsigned long) period_seconds) * 1000) { SERIAL_ERROR_START; - SERIAL_ERRORLNPGM("Thermal Runaway, system stopped! Heater_ID: "); - SERIAL_ERRORLN((int)heater_id); + SERIAL_ERRORPGM("Thermal Runaway, system stopped! Heater_ID: "); + if (heater_id == 9) + SERIAL_ERRORLNPGM("bed"); + else + SERIAL_ERRORLN((int)heater_id); LCD_ALERTMESSAGEPGM("THERMAL RUNAWAY"); thermal_runaway = true; while(1)