Do SD sort order in CardReader
This commit is contained in:
@ -1039,13 +1039,7 @@ namespace ExtUI {
|
||||
bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
|
||||
#if ENABLED(SDSUPPORT)
|
||||
if (!skip_range_check && (pos + 1) > count()) return false;
|
||||
const uint16_t nr =
|
||||
#if ENABLED(SDCARD_RATHERRECENTFIRST) && DISABLED(SDCARD_SORT_ALPHA)
|
||||
count() - 1 -
|
||||
#endif
|
||||
pos;
|
||||
|
||||
card.getfilename_sorted(nr);
|
||||
card.getfilename_sorted(SD_ORDER(pos, count()));
|
||||
return card.filename[0] != '\0';
|
||||
#else
|
||||
UNUSED(pos);
|
||||
|
Reference in New Issue
Block a user