|
@@ -24,6 +24,7 @@ CardReader::CardReader()
|
|
sdpos = 0;
|
|
sdpos = 0;
|
|
sdprinting = false;
|
|
sdprinting = false;
|
|
cardOK = false;
|
|
cardOK = false;
|
|
|
|
+ paused = false;
|
|
saving = false;
|
|
saving = false;
|
|
logging = false;
|
|
logging = false;
|
|
autostart_atmillis=0;
|
|
autostart_atmillis=0;
|
|
@@ -243,9 +244,10 @@ void CardReader::startFileprint()
|
|
if(cardOK)
|
|
if(cardOK)
|
|
{
|
|
{
|
|
sdprinting = true;
|
|
sdprinting = true;
|
|
- #ifdef SDCARD_SORT_ALPHA
|
|
|
|
- // flush_presort();
|
|
|
|
- #endif
|
|
|
|
|
|
+ paused = false;
|
|
|
|
+ #ifdef SDCARD_SORT_ALPHA
|
|
|
|
+ //flush_presort();
|
|
|
|
+ #endif
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -254,6 +256,7 @@ void CardReader::pauseSDPrint()
|
|
if(sdprinting)
|
|
if(sdprinting)
|
|
{
|
|
{
|
|
sdprinting = false;
|
|
sdprinting = false;
|
|
|
|
+ paused = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -327,6 +330,7 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
|
SERIAL_ECHOLN(name);
|
|
SERIAL_ECHOLN(name);
|
|
}
|
|
}
|
|
sdprinting = false;
|
|
sdprinting = false;
|
|
|
|
+ paused = false;
|
|
|
|
|
|
|
|
|
|
SdFile myDir;
|
|
SdFile myDir;
|