소스 검색

Fix compile with PID_DEBUG

daid303 12 년 전
부모
커밋
82c8724b33
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12
    1
      Marlin/temperature.cpp

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

@@ -348,7 +348,18 @@ void manage_heater()
348 348
           pid_output = constrain(target_temperature[e], 0, PID_MAX);
349 349
     #endif //PID_OPENLOOP
350 350
     #ifdef PID_DEBUG
351
-    SERIAL_ECHOLN(" PIDDEBUG "<<e<<": Input "<<pid_input<<" Output "<<pid_output" pTerm "<<pTerm[e]<<" iTerm "<<iTerm[e]<<" dTerm "<<dTerm[e]);  
351
+    SERIAL_ECHO_START(" PIDDEBUG ");
352
+    SERIAL_ECHO(e);
353
+    SERIAL_ECHO(": Input ");
354
+    SERIAL_ECHO(pid_input);
355
+    SERIAL_ECHO(" Output ");
356
+    SERIAL_ECHO(pid_output);
357
+    SERIAL_ECHO(" pTerm ");
358
+    SERIAL_ECHO(pTerm[e]);
359
+    SERIAL_ECHO(" iTerm ");
360
+    SERIAL_ECHO(iTerm[e]);
361
+    SERIAL_ECHO(" dTerm ");
362
+    SERIAL_ECHOLN(dTerm[e]);  
352 363
     #endif //PID_DEBUG
353 364
   #else /* PID off */
354 365
     pid_output = 0;

Loading…
취소
저장