fix autostart failure if in wrong directory

This commit is contained in:
Bernhard
2011-12-26 09:20:33 +01:00
parent 396270a0de
commit 729cde4475
3 changed files with 12 additions and 1 deletions

View File

@@ -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;