Simplify printingHasFinished
Unswitch the call to file.close(). Do not call quickStop(): motion has already completed due to st_synchronize.
This commit is contained in:
parent
4f22de2333
commit
3a1914f2fb
1 changed files with 2 additions and 3 deletions
|
@ -1008,9 +1008,10 @@ void CardReader::flush_presort() {
|
||||||
void CardReader::printingHasFinished()
|
void CardReader::printingHasFinished()
|
||||||
{
|
{
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
file.close();
|
||||||
|
|
||||||
if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure.
|
if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure.
|
||||||
{
|
{
|
||||||
file.close();
|
|
||||||
file_subcall_ctr--;
|
file_subcall_ctr--;
|
||||||
openFileReadFilteredGcode(filenames[file_subcall_ctr],true);
|
openFileReadFilteredGcode(filenames[file_subcall_ctr],true);
|
||||||
setIndex(filespos[file_subcall_ctr]);
|
setIndex(filespos[file_subcall_ctr]);
|
||||||
|
@ -1018,8 +1019,6 @@ void CardReader::printingHasFinished()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
quickStop();
|
|
||||||
file.close();
|
|
||||||
sdprinting = false;
|
sdprinting = false;
|
||||||
if(SD_FINISHED_STEPPERRELEASE)
|
if(SD_FINISHED_STEPPERRELEASE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue