Add M524 to abort SD printing (#12155)

This commit is contained in:
TheSFReader authored and Scott Lahteine committed 2018-10-19 14:25:07 -05:00
1 parent d26d9d5b81
commit 1fb9b299d4
9 files changed
+23 -21

No files matched your search

+1 -5
View File
@@ -37,10 +37,6 @@
#if ENABLED(SDSUPPORT)
#include "../../sd/cardreader.h"
#include "../../feature/emergency_parser.h"
bool abort_sd_printing; // =false
#else
constexpr bool abort_sd_printing = false;
#endif
#if ENABLED(PRINTCOUNTER)
@@ -476,7 +472,7 @@ namespace UI {
void stopPrint() {
#if ENABLED(SDSUPPORT)
wait_for_heatup = wait_for_user = false;
abort_sd_printing = true;
card.abort_sd_printing = true;
UI::onStatusChanged(PSTR(MSG_PRINT_ABORTED));
#endif
}