From 12b3a1ae564c2de39f3f41fb2361d865d24725f9 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 21 Nov 2022 10:21:40 +0800 Subject: [PATCH] Fix Error: board/stm32_ssd1289.c:310:12: error: converting the result of '<<' to a boolean always evaluates to true Signed-off-by: Xiang Xiao --- boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c | 2 +- boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c | 2 +- boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c b/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c index e9d1972f1e..22510fcceb 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c @@ -809,7 +809,7 @@ static void lcd_backlight(void) /* Select the output polarity level == HIGH */ - ccer &= !ATIM_CCER_CC2P; + ccer &= ~ATIM_CCER_CC2P; /* Enable channel 2 */ diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c b/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c index 788a81c3b8..ba82a96f4e 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c @@ -307,7 +307,7 @@ static void init_lcd_backlight(void) /* Select the output polarity level == HIGH */ - ccer &= !ATIM_CCER_CC2P; + ccer &= ~ATIM_CCER_CC2P; /* Enable channel 2 */ diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c index 88be606edc..0e9d3cddb6 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c @@ -375,7 +375,7 @@ static void init_lcd_backlight(void) /* Select the output polarity level == HIGH */ - ccer &= !ATIM_CCER_CC2P; + ccer &= ~ATIM_CCER_CC2P; /* Enable channel 2 */