mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Un-pause print on cancel (#9780)
This commit is contained in:
parent
65519263f4
commit
e749945317
@ -228,6 +228,7 @@ void process_lcd_p_command(const char* command) {
|
||||
case 'X':
|
||||
// cancel print
|
||||
write_to_lcd_P(PSTR("{SYS:CANCELING}"));
|
||||
card.stopSDPrint();
|
||||
clear_command_queue();
|
||||
quickstop_stepper();
|
||||
print_job_timer.stop();
|
||||
|
@ -33,6 +33,10 @@
|
||||
#include "../core/language.h"
|
||||
#include "../gcode/queue.h"
|
||||
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
#include "../feature/pause.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#define LONGEST_FILENAME (longFilename[0] ? longFilename : filename)
|
||||
@ -325,6 +329,9 @@ void CardReader::startFileprint() {
|
||||
}
|
||||
|
||||
void CardReader::stopSDPrint() {
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
did_pause_print = 0;
|
||||
#endif
|
||||
sdprinting = false;
|
||||
if (isFileOpen()) file.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user