diff options
author | _VIFEXTech <vifextech@foxmail.com> | 2023-04-11 16:57:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 10:57:44 +0200 |
commit | 9eb0c021a95aab67320a2b23411686801987654e (patch) | |
tree | bede7c21769509d536b1af80026e4930574ed813 /examples/arduino/LVGL_Arduino | |
parent | 862478f1526a2f6923bb019aa97e3a94c182890e (diff) | |
download | lvgl-9eb0c021a95aab67320a2b23411686801987654e.tar.gz lvgl-9eb0c021a95aab67320a2b23411686801987654e.zip |
fix(arduino): fix unsafe log printing (#4125)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
Diffstat (limited to 'examples/arduino/LVGL_Arduino')
-rw-r--r-- | examples/arduino/LVGL_Arduino/LVGL_Arduino.ino | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino index 548b97bd0..b8cb3fdfd 100644 --- a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino +++ b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino @@ -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 |