Merge pull request #1781 from MRprusa3d/PFW-843

"stop" immediately after "pause" patch
This commit is contained in:
Marek Běl 2019-05-07 16:21:35 +00:00 committed by GitHub
commit 75b12d6e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

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