"stop" immediately after "pause" patch

specific adjustation for MK2
This commit is contained in:
MRprusa3d 2019-05-29 14:14:31 +02:00
parent b94930f3e0
commit 348642c5fc
1 changed files with 3 additions and 5 deletions

View File

@ -572,11 +572,8 @@ void lcd_commands()
lcd_setstatuspgm(MSG_PRINT_PAUSED);
isPrintPaused = true;
long_pause();
if (lcd_commands_type == LCD_COMMAND_LONG_PAUSE) // !!! because "lcd_commands_type" can be changed during/inside "long_pause()"
{
lcd_commands_type = 0;
lcd_commands_step = 0;
}
lcd_commands_type = 0;
lcd_commands_step = 0;
}
}
@ -4938,6 +4935,7 @@ void lcd_print_stop() {
save_statistics(total_filament_used, t);
lcd_return_to_status();
lcd_ignore_click(true);
lcd_commands_step = 0;
lcd_commands_type = LCD_COMMAND_STOP_PRINT;
if (farm_mode) prusa_statistics(7);
// Turn off the print fan