Bladeren bron

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.
grob6000 10 jaren geleden
bovenliggende
commit
3e2af67ce3
1 gewijzigde bestanden met toevoegingen van 5 en 12 verwijderingen
  1. 5
    12
      Marlin/ConfigurationStore.cpp

+ 5
- 12
Marlin/ConfigurationStore.cpp Bestand weergeven

@@ -231,18 +231,11 @@ SERIAL_ECHOLNPGM("Scaling factors:");
231 231
 #ifdef PIDTEMP
232 232
     SERIAL_ECHO_START;
233 233
     SERIAL_ECHOLNPGM("PID settings:");
234
-	for (int e = 0; e < EXTRUDERS; e++)
235
-	{
236
-	  SERIAL_ECHO_START;
237
-      SERIAL_ECHOPAIR("   M301 E", (long unsigned int)e);
238
-	  SERIAL_ECHOPAIR(" P", Kp[e]);
239
-      SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki[e])); 
240
-      SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd[e]));
241
-#ifdef PID_ADD_EXTRUSION_RATE
242
-      SERIAL_ECHOPAIR(" C" ,Kc[e]);
243
-#endif//PID_ADD_EXTRUSION_RATE	  
244
-      SERIAL_ECHOLN(""); 
245
-	}
234
+	SERIAL_ECHO_START;
235
+    SERIAL_ECHOPAIR("   M301 P", Kp[0]); // for compatibility with hosts, only echos values for E0
236
+    SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki[0])); 
237
+    SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd[0]));  
238
+    SERIAL_ECHOLN(""); 
246 239
 #endif//PIDTEMP
247 240
 #ifdef FWRETRACT
248 241
     SERIAL_ECHO_START;

Laden…
Annuleren
Opslaan