This commit is contained in:
Knutwurst
2021-09-17 21:38:18 +02:00
parent ad974e176c
commit 533d44bf94

View File

@@ -1138,9 +1138,6 @@ void AnycubicTouchscreenClass::PrintList()
int max_files;
int filesOnSDCard = card.countFilesInWorkDir();
// What is this shit? What if there are exactely 3 files+folders?
// TODO: find something better than this crap.
if ((filesOnSDCard - filenumber) < 4)
{
max_files = filesOnSDCard;
@@ -1156,7 +1153,8 @@ void AnycubicTouchscreenClass::PrintList()
#endif
}
//max_files = filesOnSDCard;
if(filesOnSDCard == 3)
filenumber = 0;
#ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOPGM("filesOnSDCard: ");