From 3e2af67ce3ebdf148801b48cfbe3614bd2e6eaf1 Mon Sep 17 00:00:00 2001 From: grob6000 Date: Sat, 10 Jan 2015 16:44:28 +1100 Subject: [PATCH] Fix R-H compatibility * R-H reads incorrect M301 line from EEPROM output if more than one is present. Reverted to original output format, using only E0 value. --- Marlin/ConfigurationStore.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Marlin/ConfigurationStore.cpp b/Marlin/ConfigurationStore.cpp index 58335ea0e..d0fdde75a 100644 --- a/Marlin/ConfigurationStore.cpp +++ b/Marlin/ConfigurationStore.cpp @@ -231,18 +231,11 @@ SERIAL_ECHOLNPGM("Scaling factors:"); #ifdef PIDTEMP SERIAL_ECHO_START; SERIAL_ECHOLNPGM("PID settings:"); - for (int e = 0; e < EXTRUDERS; e++) - { - SERIAL_ECHO_START; - SERIAL_ECHOPAIR(" M301 E", (long unsigned int)e); - SERIAL_ECHOPAIR(" P", Kp[e]); - SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki[e])); - SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd[e])); -#ifdef PID_ADD_EXTRUSION_RATE - SERIAL_ECHOPAIR(" C" ,Kc[e]); -#endif//PID_ADD_EXTRUSION_RATE - SERIAL_ECHOLN(""); - } + SERIAL_ECHO_START; + SERIAL_ECHOPAIR(" M301 P", Kp[0]); // for compatibility with hosts, only echos values for E0 + SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki[0])); + SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd[0])); + SERIAL_ECHOLN(""); #endif//PIDTEMP #ifdef FWRETRACT SERIAL_ECHO_START;