Browse Source

Fix the M303 S-1 report text

Scott Lahteine 9 years ago
parent
commit
ae53b3cdc3
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      Marlin/temperature.cpp

+ 5
- 4
Marlin/temperature.cpp View File

@@ -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();

Loading…
Cancel
Save