fix(arduino): fix unsafe log printing (#4125)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2023-04-11 16:57:44 +08:00
committed by GitHub
parent 862478f152
commit 9eb0c021a9

View File

@@ -20,9 +20,10 @@ TFT_eSPI tft = TFT_eSPI(screenWidth, screenHeight); /* TFT instance */
#if LV_USE_LOG != 0
/* Serial debugging */
void my_print(const char * buf)
void my_print( lv_log_level_t level, const char * buf )
{
Serial.printf(buf);
LV_UNUSED(level);
Serial.print(buf);
Serial.flush();
}
#endif