Call long_pause from the main loop (again)
After calling stop_and_save_print_to_ram, perform the parking moves within the main loop as done before PR#1899 to avoid planning within an interrupted move (which would clear the abort flag too soon).
This commit is contained in:
parent
d60230e494
commit
063d0421ac
|
|
@ -1100,6 +1100,7 @@ void lcd_commands()
|
||||||
lcd_setstatuspgm(_i("Print paused"));////MSG_PRINT_PAUSED c=20 r=1
|
lcd_setstatuspgm(_i("Print paused"));////MSG_PRINT_PAUSED c=20 r=1
|
||||||
lcd_commands_type = LcdCommands::Idle;
|
lcd_commands_type = LcdCommands::Idle;
|
||||||
lcd_commands_step = 0;
|
lcd_commands_step = 0;
|
||||||
|
long_pause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1656,9 +1657,8 @@ void lcd_return_to_status()
|
||||||
//! @brief Pause print, disable nozzle heater, move to park position
|
//! @brief Pause print, disable nozzle heater, move to park position
|
||||||
void lcd_pause_print()
|
void lcd_pause_print()
|
||||||
{
|
{
|
||||||
lcd_return_to_status();
|
|
||||||
stop_and_save_print_to_ram(0.0,0.0);
|
stop_and_save_print_to_ram(0.0,0.0);
|
||||||
long_pause();
|
lcd_return_to_status();
|
||||||
isPrintPaused = true;
|
isPrintPaused = true;
|
||||||
if (LcdCommands::Idle == lcd_commands_type)
|
if (LcdCommands::Idle == lcd_commands_type)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue