From e914f8e0da7dda80cd896ab7b4022989b69ac417 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Thu, 5 Mar 2020 13:06:37 +0200 Subject: [PATCH] Show "Sorting folders" when folders are being sorted --- Firmware/cardreader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index 2bbfe2c7c..cc0d2e98d 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -739,7 +739,6 @@ void CardReader::presort() { fileCnt = SDSORT_LIMIT; } lcd_clear(); - lcd_puts_at_P(0, 1, _i("Sorting files"));////MSG_SORTING c=20 r=1 // uint32_t positions[fileCnt]; @@ -783,6 +782,10 @@ void CardReader::presort() { uint8_t* sortingBaseArray; //run=0: sorts all files and moves folders to the beginning //run=1: assumes all folders are at the beginning of the list and sorts them + + lcd_set_cursor(0, 1); + lcd_printf_P(PSTR("%-20.20S"), (runs == 0)?_i("Sorting files"):_i("Sorting folders")); + uint16_t sortCountFiles = 0; if (runs == 0) {