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,13 +1374,13 @@ void Temperature::min_temp_error(const heater_id_t heater_id) {
1374 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 1375
       if (TERN0(HAS_PID_DEBUG, thermalManager.pid_debug_flag)) {
1376 1376
         SERIAL_ECHO_START();
1377
-        if (name) SERIAL_ECHOLNF(name);
1377
+        if (name) SERIAL_ECHOF(name);
1378 1378
         if (index >= 0) SERIAL_ECHO(index);
1379 1379
         SERIAL_ECHOLNPGM(
1380 1380
           STR_PID_DEBUG_INPUT, c,
1381 1381
           STR_PID_DEBUG_OUTPUT, pid_out
1382 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 1384
           #endif
1385 1385
         );
1386 1386
       }

Loading…
Cancel
Save