Skip to content

Commit 5e35c8f

Browse files
committed
feat(p4): Fix the lvgl_port DPI callback initialization issue
1 parent 29bebaf commit 5e35c8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/esp_lvgl_port/src/lvgl8/esp_lvgl_port_disp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ lv_display_t *lvgl_port_add_disp_dsi(const lvgl_port_display_cfg_t *disp_cfg, co
110110
disp_ctx->disp_type = LVGL_PORT_DISP_TYPE_DSI;
111111

112112
#if (CONFIG_IDF_TARGET_ESP32P4 && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0))
113-
esp_lcd_dpi_panel_event_callbacks_t cbs;
113+
esp_lcd_dpi_panel_event_callbacks_t cbs = {0};
114114
if (dsi_cfg->flags.avoid_tearing) {
115115
cbs.on_refresh_done = lvgl_port_flush_dpi_vsync_ready_callback;
116116
} else {

components/esp_lvgl_port/src/lvgl9/esp_lvgl_port_disp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ lv_display_t *lvgl_port_add_disp_dsi(const lvgl_port_display_cfg_t *disp_cfg, co
123123
disp_ctx->disp_type = LVGL_PORT_DISP_TYPE_DSI;
124124

125125
#if (CONFIG_IDF_TARGET_ESP32P4 && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0))
126-
esp_lcd_dpi_panel_event_callbacks_t cbs;
126+
esp_lcd_dpi_panel_event_callbacks_t cbs = {0};
127127
if (dsi_cfg->flags.avoid_tearing) {
128128
cbs.on_refresh_done = lvgl_port_flush_dpi_vsync_ready_callback;
129129
} else {

0 commit comments

Comments
 (0)