Add M524 to abort SD printing (#11386)

This commit is contained in:
Zach Welch
2018-10-19 12:23:46 -07:00
committed by Scott Lahteine
parent 86ac4683dd
commit 75298e654e
5 changed files with 36 additions and 31 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ void CardReader::stopSDPrint(
#if ENABLED(ADVANCED_PAUSE_FEATURE)
did_pause_print = 0;
#endif
sdprinting = false;
sdprinting = abort_sd_printing = false;
if (isFileOpen()) file.close();
#if SD_RESORT
if (re_sort) presort();