Standard methods to wait for heating (#11949)

This commit is contained in:
Scott Lahteine
2018-09-29 01:44:47 -05:00
committed by GitHub
parent bdc9889d3a
commit e4389f7d23
7 changed files with 265 additions and 232 deletions

View File

@ -109,12 +109,7 @@ static bool ensure_safe_temperature(const AdvancedPauseMode mode=ADVANCED_PAUSE_
UNUSED(mode);
#endif
wait_for_heatup = true; // M108 will clear this
while (wait_for_heatup && thermalManager.wait_for_heating(active_extruder)) idle();
const bool status = wait_for_heatup;
wait_for_heatup = false;
return status;
return thermalManager.wait_for_hotend(active_extruder);
}
static void do_pause_e_move(const float &length, const float &fr) {