Allow 1 and 2 byte characters in Touchscreen Display.

This commit is contained in:
Knutwurst
2020-06-03 08:24:12 +02:00
parent 06bd56f54d
commit 7f55974cbb

View File

@@ -598,7 +598,7 @@ void AnycubicTouchscreenClass::Ls()
bool hasInvalidCharacter = false;
for (unsigned char currentChar = 0; currentChar < strlen(card.longFilename); currentChar++)
if (!isAscii(card.longFilename[currentChar]))
if (!isPrintable(card.longFilename[currentChar]))
{
hasInvalidCharacter = true;
break;