mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 05:48:43 +00:00
SDCARD_RATHERRECENTFIRST with SDCARD_SORT_ALPHA
This commit is contained in:
parent
46445a5a16
commit
20a41e2f7b
@ -813,7 +813,11 @@ void CardReader::setroot() {
|
||||
|
||||
// Init sort order.
|
||||
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 ENABLED(SDSORT_USES_RAM)
|
||||
getfilename(i);
|
||||
|
Loading…
Reference in New Issue
Block a user