Browse Source

Apply const to thermal_runaway_protection args

Scott Lahteine 7 years ago
parent
commit
38e5883d44
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/temperature.cpp
  2. 1
    1
      Marlin/temperature.h

+ 1
- 1
Marlin/temperature.cpp View File

@@ -1318,7 +1318,7 @@ void Temperature::init() {
1318 1318
     millis_t Temperature::thermal_runaway_bed_timer;
1319 1319
   #endif
1320 1320
 
1321
-  void Temperature::thermal_runaway_protection(Temperature::TRState* state, millis_t* timer, float current, float target, int heater_id, int period_seconds, int hysteresis_degc) {
1321
+  void Temperature::thermal_runaway_protection(Temperature::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) {
1322 1322
 
1323 1323
     static float tr_target_temperature[HOTENDS + 1] = { 0.0 };
1324 1324
 

+ 1
- 1
Marlin/temperature.h View File

@@ -564,7 +564,7 @@ class Temperature {
564 564
 
565 565
       typedef enum TRState { TRInactive, TRFirstHeating, TRStable, TRRunaway } TRstate;
566 566
 
567
-      static void thermal_runaway_protection(TRState* state, millis_t* timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc);
567
+      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);
568 568
 
569 569
       #if ENABLED(THERMAL_PROTECTION_HOTENDS)
570 570
         static TRState thermal_runaway_state_machine[HOTENDS];

Loading…
Cancel
Save