Merge pull request #1780 from MRprusa3d/PFW-841

"stop" immediately after "pause" patch
This commit is contained in:
Marek Běl 2019-04-29 14:49:49 +00:00 committed by GitHub
commit 177c123b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}
}
}