Allow 1 and 2 byte characters in Touchscreen Display.
This commit is contained in:
@@ -598,7 +598,7 @@ void AnycubicTouchscreenClass::Ls()
|
|||||||
|
|
||||||
bool hasInvalidCharacter = false;
|
bool hasInvalidCharacter = false;
|
||||||
for (unsigned char currentChar = 0; currentChar < strlen(card.longFilename); currentChar++)
|
for (unsigned char currentChar = 0; currentChar < strlen(card.longFilename); currentChar++)
|
||||||
if (!isAscii(card.longFilename[currentChar]))
|
if (!isPrintable(card.longFilename[currentChar]))
|
||||||
{
|
{
|
||||||
hasInvalidCharacter = true;
|
hasInvalidCharacter = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user