Fix SDCARD_SORT_ALPHA on Ender 3 V2 (#20443)

This commit is contained in:
leodoener 2020-12-12 03:20:24 +01:00 committed by GitHub
parent 9c9113e225
commit 087a6fea13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1690,7 +1690,7 @@ inline void Draw_SDItem(const uint16_t item, int16_t row=-1) {
return;
}
card.getfilename_sorted(item - is_subdir);
card.getfilename_sorted(SD_ORDER(item - is_subdir, card.get_num_Files()));
char * const name = card.longest_filename();
#if ENABLED(SCROLL_LONG_FILENAMES)