mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-22 22:26:18 +00:00
Show "bed" instead of "9" on bed thermal error (PR#2584)
This commit is contained in:
parent
6aeeb4e61f
commit
5adb162204
1 changed files with 5 additions and 2 deletions
|
@ -1052,8 +1052,11 @@ void thermal_runaway_protection(int *state, unsigned long *timer, float temperat
|
||||||
else if ( (millis() - *timer) > ((unsigned long) period_seconds) * 1000)
|
else if ( (millis() - *timer) > ((unsigned long) period_seconds) * 1000)
|
||||||
{
|
{
|
||||||
SERIAL_ERROR_START;
|
SERIAL_ERROR_START;
|
||||||
SERIAL_ERRORLNPGM("Thermal Runaway, system stopped! Heater_ID: ");
|
SERIAL_ERRORPGM("Thermal Runaway, system stopped! Heater_ID: ");
|
||||||
SERIAL_ERRORLN((int)heater_id);
|
if (heater_id == 9)
|
||||||
|
SERIAL_ERRORLNPGM("bed");
|
||||||
|
else
|
||||||
|
SERIAL_ERRORLN((int)heater_id);
|
||||||
LCD_ALERTMESSAGEPGM("THERMAL RUNAWAY");
|
LCD_ALERTMESSAGEPGM("THERMAL RUNAWAY");
|
||||||
thermal_runaway = true;
|
thermal_runaway = true;
|
||||||
while(1)
|
while(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue