Fix M109
This commit is contained in:
parent
26bf57e22c
commit
5a1787b2f4
1 changed files with 7 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
#include "Marlin.h"
|
#include "Marlin.h"
|
||||||
#include "speed_lookuptable.h"
|
#include "speed_lookuptable.h"
|
||||||
|
|
||||||
char version_string[] = "0.9.0";
|
char version_string[] = "0.9.1";
|
||||||
|
|
||||||
#ifdef SDSUPPORT
|
#ifdef SDSUPPORT
|
||||||
#include "SdFat.h"
|
#include "SdFat.h"
|
||||||
|
@ -783,7 +783,12 @@ inline void process_commands()
|
||||||
return;
|
return;
|
||||||
//break;
|
//break;
|
||||||
case 109: // M109 - Wait for extruder heater to reach target.
|
case 109: // M109 - Wait for extruder heater to reach target.
|
||||||
if (code_seen('S')) target_raw = temp2analogh(code_value());
|
if (code_seen('S')) {
|
||||||
|
target_raw = temp2analogh(code_value());
|
||||||
|
#ifdef PIDTEMP
|
||||||
|
pid_setpoint = code_value();
|
||||||
|
#endif //PIDTEMP
|
||||||
|
}
|
||||||
#ifdef WATCHPERIOD
|
#ifdef WATCHPERIOD
|
||||||
if(target_raw>current_raw){
|
if(target_raw>current_raw){
|
||||||
watchmillis = max(1,millis());
|
watchmillis = max(1,millis());
|
||||||
|
|
Reference in a new issue