Skip to content

Fix ST7701 conditional compilation logic for MIPI-DSI support #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/drivers/lcd/esp_panel_lcd_st7701.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool LCD_ST7701::init()
// Process the device on initialization
ESP_UTILS_CHECK_FALSE_RETURN(processDeviceOnInit(_bus_specifications), false, "Process device on init failed");

#if ESP_PANEL_DRIVERS_BUS_ENABLE_RGB
#if ESP_PANEL_DRIVERS_BUS_ENABLE_RGB || ESP_PANEL_DRIVERS_BUS_ENABLE_MIPI_DSI
// Create refresh panel
ESP_UTILS_CHECK_ERROR_RETURN(
esp_lcd_new_panel_st7701(
Expand All @@ -70,8 +70,8 @@ bool LCD_ST7701::init()
);
ESP_UTILS_LOGD("Create refresh panel(@%p)", refresh_panel);
#else
ESP_UTILS_CHECK_FALSE_RETURN(false, false, "MIPI-DSI is not supported");
#endif // ESP_PANEL_DRIVERS_BUS_ENABLE_RGB
ESP_UTILS_CHECK_FALSE_RETURN(false, false, "Neither RGB nor MIPI-DSI is supported");
#endif // ESP_PANEL_DRIVERS_BUS_ENABLE_RGB || ESP_PANEL_DRIVERS_BUS_ENABLE_MIPI_DSI

/* Disable control panel if enable `auto_del_panel_io/enable_io_multiplex` flag */
if (getConfig().getVendorFullConfig()->flags.auto_del_panel_io) {
Expand Down