Merge f23e5e57dc into f3e0dfd481
This commit is contained in:
commit
eae49183de
|
|
@ -228,6 +228,7 @@ static bool temp_compensation_retracted = false;
|
|||
#endif
|
||||
|
||||
static bool cancel_heatup = false;
|
||||
bool CooldownNoWait;
|
||||
|
||||
int8_t busy_state = NOT_BUSY;
|
||||
static long prev_busy_signal_ms = -1;
|
||||
|
|
@ -5438,17 +5439,19 @@ void process_commands()
|
|||
*/
|
||||
case 109:
|
||||
{
|
||||
CooldownNoWait = false;
|
||||
LCD_MESSAGERPGM(_T(MSG_HEATING));
|
||||
heating_status = HeatingStatus::EXTRUDER_HEATING;
|
||||
heating_status = HeatingStatus::EXTRUDER_HEATING;
|
||||
prusa_statistics(1);
|
||||
|
||||
#ifdef AUTOTEMP
|
||||
autotemp_enabled=false;
|
||||
#endif
|
||||
#endif
|
||||
if (code_seen('S')) {
|
||||
setTargetHotend(code_value());
|
||||
} else if (code_seen('R')) {
|
||||
setTargetHotend(code_value());
|
||||
setTargetHotend(code_value());
|
||||
CooldownNoWait = true;
|
||||
} else if (code_seen('R')) {
|
||||
setTargetHotend(code_value());
|
||||
}
|
||||
#ifdef AUTOTEMP
|
||||
if (code_seen('S')) autotemp_min=code_value();
|
||||
|
|
@ -5468,7 +5471,7 @@ void process_commands()
|
|||
wait_for_heater(codenum, active_extruder); //loops until target temperature is reached
|
||||
|
||||
LCD_MESSAGERPGM(_T(MSG_HEATING_COMPLETE));
|
||||
heating_status = HeatingStatus::EXTRUDER_HEATING_COMPLETE;
|
||||
heating_status = HeatingStatus::EXTRUDER_HEATING_COMPLETE;
|
||||
prusa_statistics(2);
|
||||
|
||||
previous_millis_cmd.start();
|
||||
|
|
@ -5491,7 +5494,7 @@ void process_commands()
|
|||
case 190:
|
||||
#if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1
|
||||
{
|
||||
bool CooldownNoWait = false;
|
||||
CooldownNoWait = false;
|
||||
LCD_MESSAGERPGM(_T(MSG_BED_HEATING));
|
||||
heating_status = HeatingStatus::BED_HEATING;
|
||||
prusa_statistics(1);
|
||||
|
|
@ -9284,6 +9287,7 @@ static void wait_for_heater(long codenum, uint8_t extruder) {
|
|||
cancel_heatup = false;
|
||||
while ((!cancel_heatup) && ((residencyStart == -1) ||
|
||||
(residencyStart >= 0 && (((unsigned int)(_millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL))))) {
|
||||
if ((CooldownNoWait == true) && !target_direction) break;
|
||||
#else
|
||||
while (target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder) && (CooldownNoWait == false))) {
|
||||
#endif //TEMP_RESIDENCY_TIME
|
||||
|
|
|
|||
Loading…
Reference in New Issue