From 47f825fa4a9dc3744646c4fef7fbd420cc4aa66b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20B=C3=B6rjesson?= Date: Mon, 19 May 2025 21:56:57 +0200 Subject: [PATCH] Fix the esp_lcd_dpi_panel_config_t intialization order EK79007_1024_600_PANEL_60HZ_CONFIG initializes the esp_lcd_dpi_panel_config_t in the wrong order, which causes more picky compilers to raise an error. --- .../display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h b/components/display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h index afb0a39a3b..fae0146fb1 100644 --- a/components/display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h +++ b/components/display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h @@ -95,22 +95,22 @@ esp_err_t esp_lcd_new_panel_ek79007(const esp_lcd_panel_io_handle_t io, const es */ #define EK79007_1024_600_PANEL_60HZ_CONFIG(px_format) \ { \ + .virtual_channel = 0, \ .dpi_clk_src = MIPI_DSI_DPI_CLK_SRC_DEFAULT, \ .dpi_clock_freq_mhz = 52, \ - .virtual_channel = 0, \ .pixel_format = px_format, \ .num_fbs = 1, \ .video_timing = { \ .h_size = 1024, \ .v_size = 600, \ - .hsync_back_porch = 160, \ .hsync_pulse_width = 10, \ + .hsync_back_porch = 160, \ .hsync_front_porch = 160, \ - .vsync_back_porch = 23, \ .vsync_pulse_width = 1, \ + .vsync_back_porch = 23, \ .vsync_front_porch = 12, \ }, \ - .flags.use_dma2d = true, \ + .flags = { .use_dma2d = true, }, \ } #ifdef __cplusplus