Fix board/stm32_lcd.c:584:14: error: converting the result of '<<' to a boolean; did you mean '(7 << (10)) != 0'?

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 13:25:53 +08:00 committed by Petro Karashchenko
parent 1a942c3c31
commit f2320a4a69

View file

@ -581,7 +581,7 @@ static int slcd_setcontrast(uint8_t contrast)
}
regval = getreg32(STM32_LCD_FCR);
regval &= !LCD_FCR_CC_MASK;
regval &= ~LCD_FCR_CC_MASK;
regval |= contrast << LCD_FCR_CC_SHIFT;
putreg32(regval, STM32_LCD_FCR);