Merge pull request #1223 from kwagyeman/kwabena/fix_lcd_pll_typo

Fix missing 0
This commit is contained in:
Ibrahim Abd Elkader 2021-03-15 20:01:49 +02:00 committed by GitHub
commit 812b9c44e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -896,7 +896,7 @@ static void ltdc_pll_config_init(int frame_size, int refresh_rate)
uint32_t pll_clk = pixel_clock * divr;
uint32_t vco = 0;
if (150000 <= pll_clk && pll_clk <= 42000) vco = RCC_PLL3VCOMEDIUM;
if (150000 <= pll_clk && pll_clk <= 420000) vco = RCC_PLL3VCOMEDIUM;
else if (192000 <= pll_clk && pll_clk <= 836000) vco = RCC_PLL3VCOWIDE;
else continue;