Remove literal string

This commit is contained in:
fvanroie 2021-01-20 02:18:26 +01:00
parent 156bf2be1b
commit 6888572970
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ bool IRAM_ATTR FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug)
if(debug) {
char tempString[128];
sprintf(tempString, "FT5206 touched x: %d y: %d\n", tp.x, tp.y);
sprintf(tempString, F("FT5206 touched x: %d y: %d\n"), tp.x, tp.y); // TODO: literal string
Serial.print(tempString);
}

View File

@ -19,9 +19,9 @@ void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points)
GT911_num_touches = contacts;
GT911_points = points;
Log.verbose(TAG_GUI, "Contacts: %d", contacts);
Log.verbose(TAG_GUI, F("Contacts: %d"), contacts);
for(int i = 0; i < contacts; i++) {
Log.verbose(TAG_GUI, "C%d: #%d %d,%d s:%d", i, points[i].trackId, points[i].x, points[i].y, points[i].area);
Log.verbose(TAG_GUI, F("C%d: #%d %d,%d s:%d"), i, points[i].trackId, points[i].x, points[i].y, points[i].area);
yield();
}
}