PFW-1561 Use did_pause_print explicitly
print_job_timer is stopped at this point so print_job_timer.paused() always yields false. For this reason here we only need to check did_pause_print. I think this makes the code a bit easier to read and gives a reason why we are clearing the flag at the end of the function.
This commit is contained in:
parent
a4ee731a53
commit
0fadb210dd
|
|
@ -5682,9 +5682,7 @@ void lcd_print_stop_finish()
|
|||
// The print was aborted while when the nozzle was cold:
|
||||
// 1. in a paused state => a partial backup in RAM is always available
|
||||
// 2. after a recoverable thermal/fan error had paused the print => only extruder temperature is saved to RAM
|
||||
if (printingIsPaused())
|
||||
{
|
||||
// Restore temperature saved in ram after pausing print
|
||||
if (did_pause_print) {
|
||||
restore_extruder_temperature_from_ram();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue