Ensure proper SD print completion (#16967)

This commit is contained in:
Scott Lahteine
2020-02-25 22:18:14 -06:00
committed by GitHub
parent 91cff02596
commit 5071fe82ab
7 changed files with 106 additions and 68 deletions

View File

@ -324,9 +324,9 @@ void MarlinUI::_synchronize() {
if (should_draw()) MenuItem_static::draw(LCD_HEIGHT >= 4, sync_message);
if (no_reentry) return;
// Make this the current handler till all moves are done
no_reentry = true;
const screenFunc_t old_screen = currentScreen;
goto_screen(_synchronize);
no_reentry = true;
planner.synchronize(); // idle() is called until moves complete
no_reentry = false;
goto_screen(old_screen);