Ver código fonte

Fix compile with PID_DEBUG

daid303 12 anos atrás
pai
commit
82c8724b33
1 arquivos alterados com 12 adições e 1 exclusões
  1. 12
    1
      Marlin/temperature.cpp

+ 12
- 1
Marlin/temperature.cpp Ver arquivo

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

Carregando…
Cancelar
Salvar