From 490754a0f03f5f16a5664d7e6ee26fa79fe82a95 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Sat, 2 Jul 2022 20:52:48 +0200 Subject: [PATCH] Fix build --- Firmware/cardreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index fab88f3d..51556ec9 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -942,7 +942,7 @@ void CardReader::presort() { /// pop the position const uint16_t o1 = sort_order[i]; - getfilename_simple(sort_positions[o1]); + getfilename_simple(sort_entries[o1]); strcpy(name1, LONGEST_FILENAME); // save (or getfilename below will trounce it) crmod_date_bckp = crmodDate; crmod_time_bckp = crmodTime; @@ -965,7 +965,7 @@ void CardReader::presort() { manage_heater(); const uint16_t o2 = sort_order[j - 1]; - getfilename_simple(sort_positions[o2]); + getfilename_simple(sort_entries[o2]); char *name2 = LONGEST_FILENAME; // use the string in-place // Sort the current pair according to settings.