Parcourir la source

Name magic value 20 to MAX_OVERSHOOT_PID_AUTOTUNE

to make it better findable.
AnHardt il y a 9 ans
Parent
révision
97ca1b3f4d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      Marlin/temperature.cpp

+ 2
- 1
Marlin/temperature.cpp Voir le fichier

@@ -312,7 +312,8 @@ void PID_autotune(float temp, int extruder, int ncycles)
312 312
         }
313 313
       } 
314 314
     }
315
-    if (input > temp + 20) {
315
+    #define MAX_OVERSHOOT_PID_AUTOTUNE 20
316
+    if (input > temp + MAX_OVERSHOOT_PID_AUTOTUNE) {
316 317
       SERIAL_PROTOCOLLNPGM(MSG_PID_TEMP_TOO_HIGH);
317 318
       return;
318 319
     }

Chargement…
Annuler
Enregistrer