Skip to content

Commit

Permalink
🩹 SD abort requires open file
Browse files Browse the repository at this point in the history
See #22566
  • Loading branch information
thinkyhead committed Dec 25, 2021
1 parent d481bba commit daa8fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/sd/cardreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class CardReader {
static void endFilePrintNow(TERN_(SD_RESORT, const bool re_sort=false));
static void abortFilePrintNow(TERN_(SD_RESORT, const bool re_sort=false));
static void fileHasFinished();
static inline void abortFilePrintSoon() { flag.abort_sd_printing = true; }
static inline void abortFilePrintSoon() { flag.abort_sd_printing = isFileOpen(); }
static inline void pauseSDPrint() { flag.sdprinting = false; }
static inline bool isPrinting() { return flag.sdprinting; }
static inline bool isPaused() { return isFileOpen() && !isPrinting(); }
Expand Down

0 comments on commit daa8fff

Please sign in to comment.