Skip to content

Commit

Permalink
Allow EXT_UI to respond to SD sort order.
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot committed Sep 9, 2020
1 parent e47f756 commit 0aeed64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,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;
card.getfilename_sorted(pos);
card.getfilename_sorted(SD_ORDER(pos, count()));
return card.filename[0] != '\0';
#else
UNUSED(pos);
Expand Down

0 comments on commit 0aeed64

Please sign in to comment.