|
@@ -450,31 +450,28 @@ void checkExtruderAutoFans()
|
450
|
450
|
inline void _temp_error(int e, const char *serial_msg, const char *lcd_msg) {
|
451
|
451
|
if (IsRunning()) {
|
452
|
452
|
SERIAL_ERROR_START;
|
453
|
|
- if (e >= 0) SERIAL_ERRORLN((int)e);
|
454
|
453
|
serialprintPGM(serial_msg);
|
455
|
|
- MYSERIAL.write('\n');
|
456
|
|
- #ifdef ULTRA_LCD
|
457
|
|
- lcd_setalertstatuspgm(lcd_msg);
|
458
|
|
- #endif
|
|
454
|
+ SERIAL_ERRORPGM(MSG_STOPPED_HEATER);
|
|
455
|
+ if (e >= 0) SERIAL_ERRORLN((int)e); else SERIAL_ERRORLNPGM(MSG_HEATER_BED);
|
459
|
456
|
}
|
460
|
457
|
#ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
|
461
|
|
- Stop();
|
|
458
|
+ kill(lcd_msg);
|
462
|
459
|
#endif
|
463
|
460
|
}
|
464
|
461
|
|
465
|
462
|
void max_temp_error(uint8_t e) {
|
466
|
463
|
disable_all_heaters();
|
467
|
|
- _temp_error(e, PSTR(MSG_MAXTEMP_EXTRUDER_OFF), PSTR(MSG_ERR_MAXTEMP));
|
|
464
|
+ _temp_error(e, PSTR(MSG_T_MAXTEMP), PSTR(MSG_ERR_MAXTEMP));
|
468
|
465
|
}
|
469
|
466
|
void min_temp_error(uint8_t e) {
|
470
|
467
|
disable_all_heaters();
|
471
|
|
- _temp_error(e, PSTR(MSG_MINTEMP_EXTRUDER_OFF), PSTR(MSG_ERR_MINTEMP));
|
|
468
|
+ _temp_error(e, PSTR(MSG_T_MINTEMP), PSTR(MSG_ERR_MINTEMP));
|
472
|
469
|
}
|
473
|
470
|
void bed_max_temp_error(void) {
|
474
|
471
|
#if HAS_HEATER_BED
|
475
|
472
|
WRITE_HEATER_BED(0);
|
476
|
473
|
#endif
|
477
|
|
- _temp_error(-1, PSTR(MSG_MAXTEMP_BED_OFF), PSTR(MSG_ERR_MAXTEMP_BED));
|
|
474
|
+ _temp_error(-1, PSTR(MSG_T_MAXTEMP), PSTR(MSG_ERR_MAXTEMP_BED));
|
478
|
475
|
}
|
479
|
476
|
|
480
|
477
|
float get_pid_output(int e) {
|
|
@@ -628,8 +625,7 @@ void manage_heater() {
|
628
|
625
|
// Has it failed to increase enough?
|
629
|
626
|
if (degHotend(e) < watch_target_temp[e]) {
|
630
|
627
|
// Stop!
|
631
|
|
- disable_all_heaters();
|
632
|
|
- _temp_error(e, PSTR(MSG_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
|
|
628
|
+ _temp_error(e, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
|
633
|
629
|
}
|
634
|
630
|
else {
|
635
|
631
|
// Start again if the target is still far off
|
|
@@ -1071,16 +1067,7 @@ void tp_init() {
|
1071
|
1067
|
*state = TRRunaway;
|
1072
|
1068
|
break;
|
1073
|
1069
|
case TRRunaway:
|
1074
|
|
- SERIAL_ERROR_START;
|
1075
|
|
- SERIAL_ERRORLNPGM(MSG_THERMAL_RUNAWAY_STOP);
|
1076
|
|
- if (heater_id < 0) SERIAL_ERRORLNPGM("bed"); else SERIAL_ERRORLN(heater_id);
|
1077
|
|
- LCD_ALERTMESSAGEPGM(MSG_THERMAL_RUNAWAY);
|
1078
|
|
- disable_all_heaters();
|
1079
|
|
- disable_all_steppers();
|
1080
|
|
- for (;;) {
|
1081
|
|
- manage_heater();
|
1082
|
|
- lcd_update();
|
1083
|
|
- }
|
|
1070
|
+ _temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
|
1084
|
1071
|
}
|
1085
|
1072
|
}
|
1086
|
1073
|
|