Skip to content

Commit c90025b

Browse files
authored
Merge pull request #417 from Horion0415/fix/fix_lvgl_port_dpi_callback
feat(p4): Fix the lvgl_port DPI callback initialization issue
2 parents 29bebaf + b3d6677 commit c90025b

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

components/esp_lvgl_port/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.4.1
4+
5+
### Fixes
6+
Fix the issue of the DPI callback function not being initialized.
7+
38
## 2.4.0
49

510
### Features

components/esp_lvgl_port/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.4.0"
1+
version: "2.4.1"
22
description: ESP LVGL port
33
url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port
44
dependencies:

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)