Fix error next command in autotune (PR#2274)

Now send only temperature for T or B, but not send OK.
Host interprets the line to show the right temperature, but not in
response to M105 then stop and send commands until it ends the autotune.
This commit is contained in:
MagoKimbra authored and Richard Wackerbarth committed 2015-06-12 07:10:38 -05:00
1 parent 55b23c896a
commit eb81982fcd
3 files changed
+5 -9

No files matched your search

+3 -4
View File
@@ -191,8 +191,7 @@ static void updateTemperaturesFromRawValues();
//================================ Functions ================================
//===========================================================================
void PID_autotune(float temp, int extruder, int ncycles)
{
void PID_autotune(float temp, int extruder, int ncycles) {
float input = 0.0;
int cycles = 0;
bool heating = true;
@@ -324,11 +323,11 @@ void PID_autotune(float temp, int extruder, int ncycles)
int p;
if (extruder < 0) {
p = soft_pwm_bed;
SERIAL_PROTOCOLPGM(MSG_OK_B);
SERIAL_PROTOCOLPGM(MSG_B);
}
else {
p = soft_pwm[extruder];
SERIAL_PROTOCOLPGM(MSG_OK_T);
SERIAL_PROTOCOLPGM(MSG_T);
}
SERIAL_PROTOCOL(input);