4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-08 13:51:09 +08:00

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 252b8f9ac3
commit 9c7f668e6c

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");