Browse Source

Name magic value 20 to MAX_OVERSHOOT_PID_AUTOTUNE

to make it better findable.
AnHardt 9 years ago
parent
commit
97ca1b3f4d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/temperature.cpp

+ 2
- 1
Marlin/temperature.cpp View File

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
       SERIAL_PROTOCOLLNPGM(MSG_PID_TEMP_TOO_HIGH);
317
       SERIAL_PROTOCOLLNPGM(MSG_PID_TEMP_TOO_HIGH);
317
       return;
318
       return;
318
     }
319
     }

Loading…
Cancel
Save