Browse Source

🩹 SD abort requires open file

See #22566
vanilla_fb_2.0.x
Scott Lahteine 3 years ago
parent
commit
daa8fff6c6
  1. 2
      Marlin/src/sd/cardreader.h

2
Marlin/src/sd/cardreader.h

@ -163,7 +163,7 @@ public:
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(); }

Loading…
Cancel
Save