Rename setroot() to cdroot()
This way the name is the same as Marlin 2.1
This commit is contained in:
parent
e0eb8b8a24
commit
42855f9f13
|
|
@ -233,11 +233,11 @@ void CardReader::initsd(bool doPresort/* = true*/)
|
|||
|
||||
if (cardOK)
|
||||
{
|
||||
setroot(doPresort);
|
||||
cdroot(doPresort);
|
||||
}
|
||||
}
|
||||
|
||||
void __attribute__((noinline)) CardReader::setroot(bool doPresort)
|
||||
void __attribute__((noinline)) CardReader::cdroot(bool doPresort)
|
||||
{
|
||||
workDir=root;
|
||||
workDirDepth = 0;
|
||||
|
|
@ -334,7 +334,7 @@ bool CardReader::diveSubfolder (const char *&fileName)
|
|||
const char *dirname_start, *dirname_end;
|
||||
if (fileName[0] == '/') // absolute path
|
||||
{
|
||||
setroot(false);
|
||||
cdroot(false);
|
||||
dirname_start = fileName + 1;
|
||||
while (*dirname_start)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public:
|
|||
void ls(ls_param params);
|
||||
bool chdir(const char * relpath, bool doPresort);
|
||||
void updir();
|
||||
void setroot(bool doPresort);
|
||||
void cdroot(bool doPresort);
|
||||
|
||||
#ifdef SDCARD_SORT_ALPHA
|
||||
void presort();
|
||||
|
|
|
|||
Loading…
Reference in New Issue