bsp/stm32: remove duplicate if condition

This commit is contained in:
wirano 2024-04-12 13:04:56 +08:00 committed by Meco Man
parent a2ab247d8f
commit dbce35ba2b
1 changed files with 0 additions and 4 deletions

View File

@ -181,10 +181,6 @@ rt_err_t stm32_lcd_init(struct drv_lcd_device *lcd)
{
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB888;
}
else if (lcd->lcd_info.pixel_format == RTGRAPHIC_PIXEL_FORMAT_RGB888)
{
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB888;
}
else
{
LOG_E("unsupported pixel format");