|
@@ -574,7 +574,7 @@ class Temperature {
|
574
|
574
|
|
575
|
575
|
typedef enum TRState { TRInactive, TRFirstHeating, TRStable, TRRunaway } TRstate;
|
576
|
576
|
|
577
|
|
- static void thermal_runaway_protection(TRState* state, millis_t* timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc);
|
|
577
|
+ static void thermal_runaway_protection(TRState * const state, millis_t * const timer, const float current, const float target, const int8_t heater_id, const uint16_t period_seconds, const uint16_t hysteresis_degc);
|
578
|
578
|
|
579
|
579
|
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
|
580
|
580
|
static TRState thermal_runaway_state_machine[HOTENDS];
|