Browse Source

🩹 Fix PID debug output (#24647)

ellensp 1 year ago
parent
commit
66e61f4de3
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/module/temperature.cpp

+ 2
- 2
Marlin/src/module/temperature.cpp View File

1374
     FORCE_INLINE void debug(const_celsius_float_t c, const_float_t pid_out, FSTR_P const name=nullptr, const int8_t index=-1) {
1374
     FORCE_INLINE void debug(const_celsius_float_t c, const_float_t pid_out, FSTR_P const name=nullptr, const int8_t index=-1) {
1375
       if (TERN0(HAS_PID_DEBUG, thermalManager.pid_debug_flag)) {
1375
       if (TERN0(HAS_PID_DEBUG, thermalManager.pid_debug_flag)) {
1376
         SERIAL_ECHO_START();
1376
         SERIAL_ECHO_START();
1377
-        if (name) SERIAL_ECHOLNF(name);
1377
+        if (name) SERIAL_ECHOF(name);
1378
         if (index >= 0) SERIAL_ECHO(index);
1378
         if (index >= 0) SERIAL_ECHO(index);
1379
         SERIAL_ECHOLNPGM(
1379
         SERIAL_ECHOLNPGM(
1380
           STR_PID_DEBUG_INPUT, c,
1380
           STR_PID_DEBUG_INPUT, c,
1381
           STR_PID_DEBUG_OUTPUT, pid_out
1381
           STR_PID_DEBUG_OUTPUT, pid_out
1382
           #if DISABLED(PID_OPENLOOP)
1382
           #if DISABLED(PID_OPENLOOP)
1383
-            , "pTerm", work_pid.Kp, "iTerm", work_pid.Ki, "dTerm", work_pid.Kd
1383
+            , " pTerm ", work_pid.Kp, " iTerm ", work_pid.Ki, " dTerm ", work_pid.Kd
1384
           #endif
1384
           #endif
1385
         );
1385
         );
1386
       }
1386
       }

Loading…
Cancel
Save