Cleanup
This commit is contained in:
@@ -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: ");
|
||||
|
Reference in New Issue
Block a user