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:
parent
1a942c3c31
commit
f2320a4a69
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue