mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-02-18 18:32:29 -07:00
Tweak cleaning buffer / SD finished command
This commit is contained in:
parent
88c0688961
commit
e47316c9d3
2 changed files with 5 additions and 4 deletions
|
|
@ -891,8 +891,9 @@ void CardReader::printingHasFinished() {
|
|||
}
|
||||
else {
|
||||
sdprinting = false;
|
||||
if (SD_FINISHED_STEPPERRELEASE)
|
||||
enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
||||
#if ENABLED(SD_FINISHED_STEPPERRELEASE) && defined(SD_FINISHED_RELEASECOMMAND)
|
||||
stepper.cleaning_buffer_counter = 1; // The command will fire from the Stepper ISR
|
||||
#endif
|
||||
print_job_timer.stop();
|
||||
if (print_job_timer.duration() > 60)
|
||||
enqueue_and_echo_commands_P(PSTR("M31"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue