Skip to content

Commit 47f825f

Browse files
authored
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.
1 parent 40e383f commit 47f825f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/display/lcd/esp_lcd_ek79007/include/esp_lcd_ek79007.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,22 @@ esp_err_t esp_lcd_new_panel_ek79007(const esp_lcd_panel_io_handle_t io, const es
9595
*/
9696
#define EK79007_1024_600_PANEL_60HZ_CONFIG(px_format) \
9797
{ \
98+
.virtual_channel = 0, \
9899
.dpi_clk_src = MIPI_DSI_DPI_CLK_SRC_DEFAULT, \
99100
.dpi_clock_freq_mhz = 52, \
100-
.virtual_channel = 0, \
101101
.pixel_format = px_format, \
102102
.num_fbs = 1, \
103103
.video_timing = { \
104104
.h_size = 1024, \
105105
.v_size = 600, \
106-
.hsync_back_porch = 160, \
107106
.hsync_pulse_width = 10, \
107+
.hsync_back_porch = 160, \
108108
.hsync_front_porch = 160, \
109-
.vsync_back_porch = 23, \
110109
.vsync_pulse_width = 1, \
110+
.vsync_back_porch = 23, \
111111
.vsync_front_porch = 12, \
112112
}, \
113-
.flags.use_dma2d = true, \
113+
.flags = { .use_dma2d = true, }, \
114114
}
115115

116116
#ifdef __cplusplus

0 commit comments

Comments
 (0)