Handle M410 in the main task (#19752)

This commit is contained in:
Victor Oliveira
2020-10-16 18:11:00 -03:00
committed by GitHub
parent 9b9cd698a5
commit e370834c35
3 changed files with 11 additions and 3 deletions

View File

@ -1032,8 +1032,14 @@ void Temperature::manage_heater() {
if (!inited) return watchdog_refresh();
#endif
if (TERN0(EMERGENCY_PARSER, emergency_parser.killed_by_M112))
kill(M112_KILL_STR, nullptr, true);
#if ENABLED(EMERGENCY_PARSER)
if (emergency_parser.killed_by_M112) kill(M112_KILL_STR, nullptr, true);
if (emergency_parser.quickstop_by_M410) {
emergency_parser.quickstop_by_M410 = false; // quickstop_stepper may call idle so clear this now!
quickstop_stepper();
}
#endif
if (!raw_temps_ready) return;