Selaa lähdekoodia

Add MSG_THERMAL_RUNAWAY_BED (#9691)

Scott Lahteine 7 vuotta sitten
vanhempi
commit
83d7e95de0
No account linked to committer's email address
2 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. 3
    0
      Marlin/src/lcd/language/language_en.h
  2. 6
    2
      Marlin/src/module/temperature.cpp

+ 3
- 0
Marlin/src/lcd/language/language_en.h Näytä tiedosto

@@ -789,6 +789,9 @@
789 789
 #ifndef MSG_THERMAL_RUNAWAY
790 790
   #define MSG_THERMAL_RUNAWAY                 _UxGT("THERMAL RUNAWAY")
791 791
 #endif
792
+#ifndef MSG_THERMAL_RUNAWAY_BED
793
+  #define MSG_THERMAL_RUNAWAY_BED             _UxGT("BED THERMAL RUNAWAY")
794
+#endif
792 795
 #ifndef MSG_ERR_MAXTEMP
793 796
   #define MSG_ERR_MAXTEMP                     _UxGT("Err: MAXTEMP")
794 797
 #endif

+ 6
- 2
Marlin/src/module/temperature.cpp Näytä tiedosto

@@ -435,7 +435,9 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
435 435
               _temp_error(hotend, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
436 436
           }
437 437
           else if (current < target - (MAX_OVERSHOOT_PID_AUTOTUNE)) // Heated, then temperature fell too far?
438
-            _temp_error(hotend, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
438
+            _temp_error(hotend, PSTR(MSG_T_THERMAL_RUNAWAY),
439
+              hotend >= 0 ? PSTR(MSG_THERMAL_RUNAWAY) : PSTR(MSG_THERMAL_RUNAWAY_BED)
440
+            );
439 441
         #endif
440 442
       } // every 2 seconds
441 443
 
@@ -1414,7 +1416,9 @@ void Temperature::init() {
1414 1416
         else if (PENDING(millis(), *timer)) break;
1415 1417
         *state = TRRunaway;
1416 1418
       case TRRunaway:
1417
-        _temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
1419
+        _temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY),
1420
+          heater_id >= 0 ? PSTR(MSG_THERMAL_RUNAWAY) : PSTR(MSG_THERMAL_RUNAWAY_BED)
1421
+        );
1418 1422
     }
1419 1423
   }
1420 1424
 

Loading…
Peruuta
Tallenna