Inverted state logic for forced_heating_stop variable
This commit is contained in:
parent
c51a6f94e0
commit
f9f54019ab
@ -1946,14 +1946,14 @@ void process_commands()
|
|||||||
/* See if we are heating up or cooling down */
|
/* See if we are heating up or cooling down */
|
||||||
target_direction = isHeatingHotend(tmp_extruder); // true if heating, false if cooling
|
target_direction = isHeatingHotend(tmp_extruder); // true if heating, false if cooling
|
||||||
|
|
||||||
forced_heating_stop = true;
|
forced_heating_stop = false;
|
||||||
|
|
||||||
#ifdef TEMP_RESIDENCY_TIME
|
#ifdef TEMP_RESIDENCY_TIME
|
||||||
long residencyStart;
|
long residencyStart;
|
||||||
residencyStart = -1;
|
residencyStart = -1;
|
||||||
/* continue to loop until we have reached the target temp
|
/* continue to loop until we have reached the target temp
|
||||||
_and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
|
_and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
|
||||||
while((forced_heating_stop == true)&&((residencyStart == -1) ||
|
while((forced_heating_stop == false)&&((residencyStart == -1) ||
|
||||||
(residencyStart >= 0 && (((unsigned int) (millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL)))) ) {
|
(residencyStart >= 0 && (((unsigned int) (millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL)))) ) {
|
||||||
#else
|
#else
|
||||||
while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) {
|
while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) {
|
||||||
|
@ -19,7 +19,7 @@ int absPreheatHotendTemp;
|
|||||||
int absPreheatHPBTemp;
|
int absPreheatHPBTemp;
|
||||||
int absPreheatFanSpeed;
|
int absPreheatFanSpeed;
|
||||||
|
|
||||||
boolean forced_heating_stop = true ;
|
boolean forced_heating_stop = false ;
|
||||||
|
|
||||||
#ifdef ULTIPANEL
|
#ifdef ULTIPANEL
|
||||||
static float manual_feedrate[] = MANUAL_FEEDRATE;
|
static float manual_feedrate[] = MANUAL_FEEDRATE;
|
||||||
@ -258,7 +258,7 @@ static void lcd_sdcard_stop()
|
|||||||
}
|
}
|
||||||
autotempShutdown();
|
autotempShutdown();
|
||||||
|
|
||||||
forced_heating_stop = false;
|
forced_heating_stop = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu implementation */
|
/* Menu implementation */
|
||||||
|
Loading…
Reference in New Issue
Block a user