From b93f37ee02e87f8255787acf0dee8e8c3410f3e3 Mon Sep 17 00:00:00 2001 From: MRprusa3d Date: Mon, 29 Apr 2019 14:39:19 +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 e06824f13..7645ec8f0 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -1046,8 +1046,11 @@ void lcd_commands() { lcd_setstatuspgm(_i("Print paused"));////MSG_PRINT_PAUSED c=20 r=1 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; + } } }