From b94930f3e09bfd57eafc908bb88e7d9081417e0b Mon Sep 17 00:00:00 2001 From: MRprusa3d Date: Mon, 29 Apr 2019 14:48:29 +0200 Subject: [PATCH] "stop" immediately after "pause" patch --- Firmware/ultralcd.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 55e0f4057..58e22bde7 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -572,8 +572,11 @@ void lcd_commands() lcd_setstatuspgm(MSG_PRINT_PAUSED); isPrintPaused = true; long_pause(); - lcd_commands_type = 0; - lcd_commands_step = 0; + 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; + } } }