From 348642c5fc2d7f43befe48f4b2fff01eb1668d64 Mon Sep 17 00:00:00 2001 From: MRprusa3d Date: Wed, 29 May 2019 14:14:31 +0200 Subject: [PATCH] "stop" immediately after "pause" patch specific adjustation for MK2 --- Firmware/ultralcd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 58e22bde7..221a0bc6c 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -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