|
@@ -602,19 +602,19 @@ void CardReader::updir() {
|
602
|
602
|
|
603
|
603
|
void CardReader::printingHasFinished() {
|
604
|
604
|
stepper.synchronize();
|
|
605
|
+ file.close();
|
605
|
606
|
if (file_subcall_ctr > 0) { // Heading up to a parent file that called current as a procedure.
|
606
|
|
- file.close();
|
607
|
607
|
file_subcall_ctr--;
|
608
|
608
|
openFile(proc_filenames[file_subcall_ctr], true, true);
|
609
|
609
|
setIndex(filespos[file_subcall_ctr]);
|
610
|
610
|
startFileprint();
|
611
|
611
|
}
|
612
|
612
|
else {
|
613
|
|
- file.close();
|
614
|
613
|
sdprinting = false;
|
615
|
614
|
if (SD_FINISHED_STEPPERRELEASE)
|
616
|
615
|
enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
617
|
|
- thermalManager.autotempShutdown();
|
|
616
|
+ print_job_timer.stop();
|
|
617
|
+ enqueue_and_echo_commands_P(PSTR("M31"));
|
618
|
618
|
}
|
619
|
619
|
}
|
620
|
620
|
|