Browse Source

Don't re-reverse sort

Scott Lahteine 5 years ago
parent
commit
929b3f6af9
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/lcd/extui/ui_api.cpp
  2. 1
    1
      Marlin/src/lcd/menu/menu_media.cpp

+ 1
- 1
Marlin/src/lcd/extui/ui_api.cpp View File

@@ -1000,7 +1000,7 @@ namespace ExtUI {
1000 1000
   bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
1001 1001
     #if ENABLED(SDSUPPORT)
1002 1002
       if (!skip_range_check && (pos + 1) > count()) return false;
1003
-      card.getfilename_sorted(SD_ORDER(pos, count()));
1003
+      card.getfilename_sorted(pos);
1004 1004
       return card.filename[0] != '\0';
1005 1005
     #else
1006 1006
       UNUSED(pos);

+ 1
- 1
Marlin/src/lcd/menu/menu_media.cpp View File

@@ -126,7 +126,7 @@ void menu_media() {
126 126
 
127 127
   if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
128 128
     if (_menuLineNr == _thisItemNr) {
129
-      card.getfilename_sorted(SD_ORDER(i, fileCnt));
129
+      card.getfilename_sorted(i);
130 130
       if (card.flag.filenameIsDir)
131 131
         MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
132 132
       else

Loading…
Cancel
Save