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 cee63a1688
commit 6110a54635
5 changed files with 36 additions and 31 deletions

View File

@@ -854,11 +854,9 @@ void lcd_quick_feedback(const bool clear_buttons) {
lcd_reset_status();
}
bool abort_sd_printing; // =false
void lcd_sdcard_stop() {
wait_for_heatup = wait_for_user = false;
abort_sd_printing = true;
card.abort_sd_printing = true;
lcd_setstatusPGM(PSTR(MSG_PRINT_ABORTED), -1);
lcd_return_to_status();
}