mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
committed by
Petro Karashchenko
parent
1a942c3c31
commit
f2320a4a69
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user