Преглед на файлове

Apply const to thermal_runaway_protection args

Scott Lahteine преди 7 години
родител
ревизия
45c2388a58
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      Marlin/src/module/temperature.cpp
  2. 1
    1
      Marlin/src/module/temperature.h

+ 1
- 1
Marlin/src/module/temperature.cpp Целия файл

@@ -1357,7 +1357,7 @@ void Temperature::init() {
1357 1357
     millis_t Temperature::thermal_runaway_bed_timer;
1358 1358
   #endif
1359 1359
 
1360
-  void Temperature::thermal_runaway_protection(Temperature::TRState* state, millis_t* timer, float current, float target, int heater_id, int period_seconds, int hysteresis_degc) {
1360
+  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) {
1361 1361
 
1362 1362
     static float tr_target_temperature[HOTENDS + 1] = { 0.0 };
1363 1363
 

+ 1
- 1
Marlin/src/module/temperature.h Целия файл

@@ -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];

Loading…
Отказ
Запис