Skip to content

Commit 5f3e921

Browse files
committed
Merge branch 'fix/check_the_return_value_of_underlying_deletion_function' into 'master'
fix(display): check the return value of the underlying deletion function See merge request ae_group/esp-iot-solution!1389
2 parents bc2f276 + c8c4726 commit 5f3e921

32 files changed

+94
-35
lines changed

components/display/lcd/esp_lcd_co5300/CHANGELOG.md

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

3+
## v1.0.2 - 2025-09-29
4+
5+
### bugfix:
6+
7+
* Check the return value of the underlying deletion function. If it fails, propagate the error
8+
39
## v1.0.1 - 2025-09-15
410

511
### Changes:

components/display/lcd/esp_lcd_co5300/esp_lcd_co5300_mipi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ static esp_err_t panel_co5300_del(esp_lcd_panel_t *panel)
154154
{
155155
co5300_panel_t *co5300 = (co5300_panel_t *)panel->user_data;
156156

157+
// Delete MIPI DPI panel
158+
ESP_RETURN_ON_ERROR(co5300->del(panel), TAG, "del co5300 panel failed");
157159
if (co5300->reset_gpio_num >= 0) {
158160
gpio_reset_pin(co5300->reset_gpio_num);
159161
}
160-
// Delete MIPI DPI panel
161-
co5300->del(panel);
162162
ESP_LOGD(TAG, "del co5300 panel @%p", co5300);
163163
free(co5300);
164164

components/display/lcd/esp_lcd_co5300/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.1"
1+
version: "1.0.2"
22
description: ESP LCD CO5300(SPI & QSPI & MIPI-DSI)
33
url: https://github.com/espressif/esp-iot-solution/tree/master/components/display/lcd/esp_lcd_co5300
44
repository: https://github.com/espressif/esp-iot-solution.git

components/display/lcd/esp_lcd_ek79007/CHANGELOG.md

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

3+
## v1.0.4 - 2025-09-29
4+
5+
### bugfix:
6+
7+
* Check the return value of the underlying deletion function. If it fails, propagate the error
8+
39
## v1.0.3 - 2025-09-15
410

511
### Changes:

components/display/lcd/esp_lcd_ek79007/esp_lcd_ek79007.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ static esp_err_t panel_ek79007_del(esp_lcd_panel_t *panel)
191191
{
192192
ek79007_panel_t *ek79007 = (ek79007_panel_t *)panel->user_data;
193193

194+
// Delete MIPI DPI panel
195+
ESP_RETURN_ON_ERROR(ek79007->del(panel), TAG, "del ek79007 panel failed");
194196
if (ek79007->reset_gpio_num >= 0) {
195197
gpio_reset_pin(ek79007->reset_gpio_num);
196198
}
197-
// Delete MIPI DPI panel
198-
ek79007->del(panel);
199199
ESP_LOGD(TAG, "del ek79007 panel @%p", ek79007);
200200
free(ek79007);
201201

components/display/lcd/esp_lcd_ek79007/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.3"
1+
version: "1.0.4"
22
targets:
33
- esp32p4
44
description: ESP LCD EK79007(MIPI-DSI)

components/display/lcd/esp_lcd_hx8399/CHANGELOG.md

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

3+
## v1.0.5 - 2025-09-29
4+
5+
### bugfix:
6+
7+
* Check the return value of the underlying deletion function. If it fails, propagate the error
8+
39
## v1.0.4 - 2025-09-15
410

511
### Changes:

components/display/lcd/esp_lcd_hx8399/esp_lcd_hx8399.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ static esp_err_t panel_hx8399_del(esp_lcd_panel_t *panel)
168168
{
169169
hx8399_panel_t *hx8399 = (hx8399_panel_t *)panel->user_data;
170170

171+
// Delete MIPI DPI panel
172+
ESP_RETURN_ON_ERROR(hx8399->del(panel), TAG, "del hx8399 panel failed");
171173
if (hx8399->reset_gpio_num >= 0) {
172174
gpio_reset_pin(hx8399->reset_gpio_num);
173175
}
174-
// Delete MIPI DPI panel
175-
hx8399->del(panel);
176176
ESP_LOGD(TAG, "del hx8399 panel @%p", hx8399);
177177
free(hx8399);
178178

components/display/lcd/esp_lcd_hx8399/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.4"
1+
version: "1.0.5"
22
targets:
33
- esp32p4
44
description: ESP LCD HX8399 (MIPI-DSI)

components/display/lcd/esp_lcd_jd9165/CHANGELOG.md

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

3+
## v1.0.4 - 2025-09-29
4+
5+
### bugfix:
6+
7+
* Check the return value of the underlying deletion function. If it fails, propagate the error
8+
39
## v1.0.3 - 2025-09-15
410

511
### Changes:

0 commit comments

Comments
 (0)