Merge pull request #4583 from gudnimg/PFW-1553

PFW-1553 fix regression where SD card file is not closed when stopping paused print
This commit is contained in:
3d-gussner 2024-01-29 09:48:55 +01:00 committed by GitHub
commit e5c5720d03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -5709,7 +5709,7 @@ void print_stop(bool interactive)
// called by the main loop one iteration later.
UnconditionalStop();
if (card.sdprinting) {
if (card.mounted) {
// Reset the sd status
card.sdprinting = false;
card.closefile();