|
@ -27,6 +27,10 @@ |
|
|
#include "../gcode.h" |
|
|
#include "../gcode.h" |
|
|
#include "../../module/printcounter.h" |
|
|
#include "../../module/printcounter.h" |
|
|
|
|
|
|
|
|
|
|
|
#ifdef SD_FINISHED_RELEASECOMMAND |
|
|
|
|
|
#include "../queue.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if EITHER(LCD_SET_PROGRESS_MANUALLY, SD_REPRINT_LAST_SELECTED_FILE) |
|
|
#if EITHER(LCD_SET_PROGRESS_MANUALLY, SD_REPRINT_LAST_SELECTED_FILE) |
|
|
#include "../../lcd/ultralcd.h" |
|
|
#include "../../lcd/ultralcd.h" |
|
|
#endif |
|
|
#endif |
|
@ -47,10 +51,6 @@ |
|
|
#include "../../feature/host_actions.h" |
|
|
#include "../../feature/host_actions.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(SD_FINISHED_STEPPERRELEASE) && defined(SD_FINISHED_RELEASECOMMAND) |
|
|
|
|
|
#include "../../module/planner.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef PE_LEDS_COMPLETED_TIME |
|
|
#ifndef PE_LEDS_COMPLETED_TIME |
|
|
#define PE_LEDS_COMPLETED_TIME (30*60) |
|
|
#define PE_LEDS_COMPLETED_TIME (30*60) |
|
|
#endif |
|
|
#endif |
|
@ -95,9 +95,9 @@ void GcodeSuite::M1001() { |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Wait for the queue to empty (and "clean"), inject SD_FINISHED_RELEASECOMMAND
|
|
|
// Inject SD_FINISHED_RELEASECOMMAND, if any
|
|
|
#if ENABLED(SD_FINISHED_STEPPERRELEASE) && defined(SD_FINISHED_RELEASECOMMAND) |
|
|
#ifdef SD_FINISHED_RELEASECOMMAND |
|
|
planner.finish_and_disable(); |
|
|
queue.inject_P(PSTR(SD_FINISHED_RELEASECOMMAND)); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Re-select the last printed file in the UI
|
|
|
// Re-select the last printed file in the UI
|
|
|