Fix compiler warning sketch/cardreader.cpp:706:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare].
Remove redundant and masked int d variable. Fix indentation of presort() to make it clear, that it is not part of for loop.
This commit is contained in:
parent
5f8e87e649
commit
08b56fe1a4
@ -702,11 +702,12 @@ void CardReader::updir()
|
|||||||
{
|
{
|
||||||
--workDirDepth;
|
--workDirDepth;
|
||||||
workDir = workDirParents[0];
|
workDir = workDirParents[0];
|
||||||
int d;
|
for (unsigned int d = 0; d < workDirDepth; d++)
|
||||||
for (int d = 0; d < workDirDepth; d++)
|
{
|
||||||
workDirParents[d] = workDirParents[d+1];
|
workDirParents[d] = workDirParents[d+1];
|
||||||
|
}
|
||||||
#ifdef SDCARD_SORT_ALPHA
|
#ifdef SDCARD_SORT_ALPHA
|
||||||
presort();
|
presort();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user