From 1a942c3c319afabe19b457cf295c72bb1fa73ecd Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 19 Nov 2022 13:24:26 +0800 Subject: [PATCH] Fix lcd/ili9225.c:388:46: error: shift count >= width of type Signed-off-by: Xiang Xiao --- include/nuttx/lcd/ili9225.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/lcd/ili9225.h b/include/nuttx/lcd/ili9225.h index 399e5f4e43..e4c158f997 100644 --- a/include/nuttx/lcd/ili9225.h +++ b/include/nuttx/lcd/ili9225.h @@ -223,7 +223,7 @@ #define ILI9225_VCI_REC_VCIR_SHIFT (4) /* Set CVI recycling period */ #define ILI9225_VCI_REC_VCIR_MASK (0x7 << ILI9225_VCI_REC_VCIR_SHIFT) -#define ILI9225_VCI_REC_VCIR(n) (((uint16_t)(n) << ILI9225_VCI_REC_VCIR_MASK) & ILI9225_VCI_REC_VCIR_SHIFT) +#define ILI9225_VCI_REC_VCIR(n) (((uint16_t)(n) << ILI9225_VCI_REC_VCIR_SHIFT) & ILI9225_VCI_REC_VCIR_MASK) /* ILI9225_HORIZONTAL_GRAM_ADDR_SET, * Horizontal GRAM Address Set, Offset: 0x20