Tweak cleaning buffer / SD finished command
This commit is contained in:
parent
28fc8741d6
commit
50366b00d5
@ -397,8 +397,8 @@ void Stepper::isr() {
|
|||||||
else {
|
else {
|
||||||
planner.discard_current_block();
|
planner.discard_current_block();
|
||||||
--cleaning_buffer_counter; // Count down for abort print
|
--cleaning_buffer_counter; // Count down for abort print
|
||||||
#ifdef SD_FINISHED_RELEASECOMMAND
|
#if ENABLED(SD_FINISHED_STEPPERRELEASE) && defined(SD_FINISHED_RELEASECOMMAND)
|
||||||
if (!cleaning_buffer_counter && (SD_FINISHED_STEPPERRELEASE)) enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
if (!cleaning_buffer_counter) enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
current_block = NULL; // Prep to get a new block after cleaning
|
current_block = NULL; // Prep to get a new block after cleaning
|
||||||
|
@ -896,8 +896,9 @@ void CardReader::printingHasFinished() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sdprinting = false;
|
sdprinting = false;
|
||||||
if (SD_FINISHED_STEPPERRELEASE)
|
#if ENABLED(SD_FINISHED_STEPPERRELEASE) && defined(SD_FINISHED_RELEASECOMMAND)
|
||||||
enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
stepper.cleaning_buffer_counter = 1; // The command will fire from the Stepper ISR
|
||||||
|
#endif
|
||||||
print_job_timer.stop();
|
print_job_timer.stop();
|
||||||
if (print_job_timer.duration() > 60)
|
if (print_job_timer.duration() > 60)
|
||||||
enqueue_and_echo_commands_P(PSTR("M31"));
|
enqueue_and_echo_commands_P(PSTR("M31"));
|
||||||
|
Loading…
Reference in New Issue
Block a user