From dee1bd1a24494436f231e7ad25bf50ce93c849b9 Mon Sep 17 00:00:00 2001 From: morris Date: Thu, 14 Jul 2022 16:52:55 +0800 Subject: [PATCH] rgb_lcd: fix error in rgb_panel_set_gap Closes https://github.com/espressif/esp-idf/issues/9279 --- components/esp_lcd/src/esp_lcd_rgb_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_lcd/src/esp_lcd_rgb_panel.c b/components/esp_lcd/src/esp_lcd_rgb_panel.c index b577f7a5a5..c1de264139 100644 --- a/components/esp_lcd/src/esp_lcd_rgb_panel.c +++ b/components/esp_lcd/src/esp_lcd_rgb_panel.c @@ -365,7 +365,7 @@ static esp_err_t rgb_panel_set_gap(esp_lcd_panel_t *panel, int x_gap, int y_gap) { esp_rgb_panel_t *rgb_panel = __containerof(panel, esp_rgb_panel_t, base); rgb_panel->x_gap = x_gap; - rgb_panel->x_gap = y_gap; + rgb_panel->y_gap = y_gap; return ESP_OK; }