소스 검색

Merge pull request #2111 from AnHardt/at

Name magic value 20 to MAX_OVERSHOOT_PID_AUTOTUNE
Scott Lahteine 9 년 전
부모
커밋
cad248fc55
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      Marlin/temperature.cpp

+ 2
- 1
Marlin/temperature.cpp 파일 보기

@@ -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
     }

Loading…
취소
저장