Make M109 S not wait for cooldown

fixes #1474
This commit is contained in:
haarp 2019-07-30 20:46:49 +02:00 committed by 3d-gussner
parent b1da06859c
commit 5e46014359
1 changed files with 1 additions and 0 deletions

View File

@ -9722,6 +9722,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