Merge pull request #4590 from gudnimg/PFW-1552-v2

PFW-1552 Fix a regression introduced in f022567
This commit is contained in:
3d-gussner 2024-02-05 08:54:52 +01:00 committed by GitHub
commit 8e26a95630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -9776,6 +9776,15 @@ void ConditionalStop()
{
CRITICAL_SECTION_START;
// Don't disable the heaters! lcd_print_stop_finish() will do it later via lcd_cooldown()
//
// However, the firmware must take into account the edge case when the firmware
// is running M109 or M190 G-codes. These G-codes execute a blocking while loop
// which waits for the bed or nozzle to reach their target temperature.
// To exit the loop, the firmware must set cancel_heatup to true.
cancel_heatup = true;
heating_status = HeatingStatus::NO_HEATING;
// Clear any saved printing state
cancel_saved_printing();