Skip to content

Commit

Permalink
Merge pull request #1989 from thinkyhead/pid_tuning_report
Browse files Browse the repository at this point in the history
Fix the M303 S-1 report text
  • Loading branch information
thinkyhead committed Apr 28, 2015
2 parents 3688256 + a120bf3 commit a9a4f0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void updateTemperaturesFromRawValues();
#endif

//===========================================================================
//================================ functions ================================
//================================ Functions ================================
//===========================================================================

void PID_autotune(float temp, int extruder, int ncycles)
Expand Down Expand Up @@ -342,9 +342,10 @@ void PID_autotune(float temp, int extruder, int ncycles)
}
if (cycles > ncycles) {
SERIAL_PROTOCOLLNPGM(MSG_PID_AUTOTUNE_FINISHED);
SERIAL_PROTOCOLPGM("#define DEFAULT_Kp "); SERIAL_PROTOCOLLN(Kp);
SERIAL_PROTOCOLPGM("#define DEFAULT_Ki "); SERIAL_PROTOCOLLN(Ki);
SERIAL_PROTOCOLPGM("#define DEFAULT_Kd "); SERIAL_PROTOCOLLN(Kd);
const char *estring = extruder < 0 ? "bed" : "";
SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Kp "); SERIAL_PROTOCOLLN(Kp);
SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Ki "); SERIAL_PROTOCOLLN(Ki);
SERIAL_PROTOCOLPGM("#define DEFAULT_"); SERIAL_PROTOCOL(estring); SERIAL_PROTOCOLPGM("Kd "); SERIAL_PROTOCOLLN(Kd);
return;
}
lcd_update();
Expand Down

0 comments on commit a9a4f0e

Please sign in to comment.