fix autostart failure if in wrong directory
This commit is contained in:
@@ -164,6 +164,15 @@ void CardReader::initsd()
|
||||
SERIAL_ECHOLNPGM("workDir open failed");
|
||||
}
|
||||
}
|
||||
|
||||
void CardReader::setroot()
|
||||
{
|
||||
curDir=&root;
|
||||
if(!workDir.openRoot(&volume))
|
||||
{
|
||||
SERIAL_ECHOLNPGM("workDir open failed");
|
||||
}
|
||||
}
|
||||
void CardReader::release()
|
||||
{
|
||||
sdprinting = false;
|
||||
|
||||
Reference in New Issue
Block a user