|
@@ -187,7 +187,7 @@ static void updateTemperaturesFromRawValues();
|
187
|
187
|
#endif
|
188
|
188
|
|
189
|
189
|
//===========================================================================
|
190
|
|
-//============================= functions ============================
|
|
190
|
+//================================ Functions ================================
|
191
|
191
|
//===========================================================================
|
192
|
192
|
|
193
|
193
|
void PID_autotune(float temp, int extruder, int ncycles)
|
|
@@ -341,9 +341,10 @@ void PID_autotune(float temp, int extruder, int ncycles)
|
341
|
341
|
}
|
342
|
342
|
if (cycles > ncycles) {
|
343
|
343
|
SERIAL_PROTOCOLLNPGM(MSG_PID_AUTOTUNE_FINISHED);
|
344
|
|
- SERIAL_PROTOCOLPGM("#define DEFAULT_Kp "); SERIAL_PROTOCOLLN(Kp);
|
345
|
|
- SERIAL_PROTOCOLPGM("#define DEFAULT_Ki "); SERIAL_PROTOCOLLN(Ki);
|
346
|
|
- SERIAL_PROTOCOLPGM("#define DEFAULT_Kd "); SERIAL_PROTOCOLLN(Kd);
|
|
344
|
+ const char *estring = extruder < 0 ? "bed" : "";
|
|
345
|
+ SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Kp "); SERIAL_PROTOCOLLN(Kp);
|
|
346
|
+ SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Ki "); SERIAL_PROTOCOLLN(Ki);
|
|
347
|
+ SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Kd "); SERIAL_PROTOCOLLN(Kd);
|
347
|
348
|
return;
|
348
|
349
|
}
|
349
|
350
|
lcd_update();
|