Signal SD completion later (#21840)
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#include "../gcode.h"
|
||||
#include "../../module/planner.h"
|
||||
#include "../../module/printcounter.h"
|
||||
|
||||
#if DISABLED(NO_SD_AUTOSTART)
|
||||
@@ -64,6 +65,11 @@
|
||||
* M1001: Execute actions for SD print completion
|
||||
*/
|
||||
void GcodeSuite::M1001() {
|
||||
planner.synchronize();
|
||||
|
||||
// SD Printing is finished when the queue reaches M1001
|
||||
card.flag.sdprinting = card.flag.sdprintdone = false;
|
||||
|
||||
// If there's another auto#.g file to run...
|
||||
if (TERN(NO_SD_AUTOSTART, false, card.autofile_check())) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user