Skip to content

Commit 7c89e09

Browse files
authored
#504: Fix build for ESP32P4
1 parent 2bd6cb5 commit 7c89e09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext_mod/lcd_bus/esp32_src/i80_bus.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@
151151
self->bus_config.data_gpio_nums[15] = args[ARG_data15].u_int;
152152

153153
uint8_t i = 0;
154-
for (; i < SOC_LCD_I80_BUS_WIDTH; i++) {
154+
#if CONFIG_IDF_TARGET_ESP32P4
155+
uint8_t bus_width = SOC_LCDCAM_I80_BUS_WIDTH;
156+
#else
157+
uint8_t bus_width = SOC_LCD_I80_BUS_WIDTH;
158+
#endif
159+
for (; i < bus_width; i++) {
155160
if (self->bus_config.data_gpio_nums[i] == -1) {
156161
break;
157162
}

0 commit comments

Comments
 (0)