Fix a bug in the M500 for saving the PID setting
authorJim Morris <morris@wolfman.com>
Fri, 3 Jan 2014 09:10:06 +0000 (01:10 -0800)
committerJim Morris <morris@wolfman.com>
Fri, 3 Jan 2014 09:10:06 +0000 (01:10 -0800)
Forgot to add the S parameter

src/modules/tools/temperaturecontrol/TemperatureControl.cpp

index 3bdf6a9..3d20bbd 100644 (file)
@@ -166,7 +166,7 @@ void TemperatureControl::on_gcode_received(void* argument){
             }
 
         } else if (gcode->m == 500 || gcode->m == 503){// M500 saves some volatile settings to config override file, M503 just prints the settings
-            gcode->stream->printf(";PID settings:\nM301 P%1.4f I%1.4f D%1.4f\n", this->p_factor, this->i_factor/this->PIDdt, this->d_factor*this->PIDdt);
+            gcode->stream->printf(";PID settings:\nM301 S%d P%1.4f I%1.4f D%1.4f\n", this->pool_index, this->p_factor, this->i_factor/this->PIDdt, this->d_factor*this->PIDdt);
             gcode->mark_as_taken();
 
         } else if( ( gcode->m == this->set_m_code || gcode->m == this->set_and_wait_m_code ) && gcode->has_letter('S') ) {