|
@@ -318,9 +318,9 @@ void CardReader::openFile(char* name, bool read, bool replace_current/*=true*/)
|
318
|
318
|
SERIAL_ECHOPGM("\" parent:\"");
|
319
|
319
|
|
320
|
320
|
//store current filename and position
|
321
|
|
- getAbsFilename(filenames[file_subcall_ctr]);
|
|
321
|
+ getAbsFilename(proc_filenames[file_subcall_ctr]);
|
322
|
322
|
|
323
|
|
- SERIAL_ECHO(filenames[file_subcall_ctr]);
|
|
323
|
+ SERIAL_ECHO(proc_filenames[file_subcall_ctr]);
|
324
|
324
|
SERIAL_ECHOPGM("\" pos");
|
325
|
325
|
SERIAL_ECHOLN(sdpos);
|
326
|
326
|
filespos[file_subcall_ctr] = sdpos;
|
|
@@ -607,7 +607,7 @@ void CardReader::printingHasFinished() {
|
607
|
607
|
if (file_subcall_ctr > 0) { // Heading up to a parent file that called current as a procedure.
|
608
|
608
|
file.close();
|
609
|
609
|
file_subcall_ctr--;
|
610
|
|
- openFile(filenames[file_subcall_ctr], true, true);
|
|
610
|
+ openFile(proc_filenames[file_subcall_ctr], true, true);
|
611
|
611
|
setIndex(filespos[file_subcall_ctr]);
|
612
|
612
|
startFileprint();
|
613
|
613
|
}
|
|
@@ -617,7 +617,6 @@ void CardReader::printingHasFinished() {
|
617
|
617
|
if (SD_FINISHED_STEPPERRELEASE) {
|
618
|
618
|
//finishAndDisableSteppers();
|
619
|
619
|
enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
620
|
|
- }
|
621
|
620
|
autotempShutdown();
|
622
|
621
|
}
|
623
|
622
|
}
|