Skip to main content
Sign in
Snippets Groups Projects
Commit 20a41e2f authored by Scott Lahteine's avatar Scott Lahteine
Browse files

SDCARD_RATHERRECENTFIRST with SDCARD_SORT_ALPHA

parent 46445a5a
Branches
Tags
No related merge requests found
...@@ -813,7 +813,11 @@ void CardReader::setroot() { ...@@ -813,7 +813,11 @@ void CardReader::setroot() {
// Init sort order. // Init sort order.
for (uint16_t i = 0; i < fileCnt; i++) { for (uint16_t i = 0; i < fileCnt; i++) {
sort_order[i] = i; sort_order[i] = (
#if ENABLED(SDCARD_RATHERRECENTFIRST)
fileCnt - 1 -
#endif
i);
// If using RAM then read all filenames now. // If using RAM then read all filenames now.
#if ENABLED(SDSORT_USES_RAM) #if ENABLED(SDSORT_USES_RAM)
getfilename(i); getfilename(i);
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment