We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6071792 commit 1cff4fdCopy full SHA for 1cff4fd
1 file changed
Marlin/src/sd/cardreader.h
@@ -163,7 +163,7 @@ class CardReader {
163
static void endFilePrintNow(TERN_(SD_RESORT, const bool re_sort=false));
164
static void abortFilePrintNow(TERN_(SD_RESORT, const bool re_sort=false));
165
static void fileHasFinished();
166
- static inline void abortFilePrintSoon() { flag.abort_sd_printing = true; }
+ static inline void abortFilePrintSoon() { flag.abort_sd_printing = isFileOpen(); }
167
static inline void pauseSDPrint() { flag.sdprinting = false; }
168
static inline bool isPrinting() { return flag.sdprinting; }
169
static inline bool isPaused() { return isFileOpen() && !isPrinting(); }
0 commit comments