Skip to content

Commit a387e79

Browse files
committed
Print LV_HOR_RES_MAX and LV_VER_RES_MAX only when using LVGL v7 or below
1 parent cccb932 commit a387e79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lvgl_helpers.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
/* Interface and driver initialization */
5454
void lvgl_driver_init(void)
5555
{
56+
/* Since LVGL v8 LV_HOR_RES_MAX and LV_VER_RES_MAX are not defined, so
57+
* print it only if they are defined. */
58+
#if (LVGL_VERSION_MAJOR < 8)
5659
ESP_LOGI(TAG, "Display hor size: %d, ver size: %d", LV_HOR_RES_MAX, LV_VER_RES_MAX);
60+
#endif
61+
5762
ESP_LOGI(TAG, "Display buffer size: %d", DISP_BUF_SIZE);
5863

5964
#if defined (CONFIG_LV_TFT_DISPLAY_CONTROLLER_FT81X)

0 commit comments

Comments
 (0)