Fix "1c" issue

This commit is contained in:
Just Call Me Koko
2026-05-04 13:38:30 -04:00
parent ed9c9acc4d
commit 74ad4d6d33
+7 -1
View File
@@ -522,7 +522,13 @@ void Display::processAndPrintString(TFT_eSPI& tft, const String& originalString)
}
}
String spaces = String(' ', TFT_WIDTH / CHAR_WIDTH);
int count = TFT_WIDTH / CHAR_WIDTH;
char buf[count + 1];
memset(buf, ' ', count);
buf[count] = '\0';
String spaces(buf);
// Set text color and print the string
tft.setTextColor(text_color, background_color);