From 2e3473c9d62a3140079c7c7b08bd9982702d9764 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 26 Oct 2022 11:18:42 +0800 Subject: [PATCH] Fix src/cxd56_ili9340.c:276:22: error: cast to smaller integer type 'uint16_t' (aka 'unsigned short') from 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wpointer-to-int-cast] Signed-off-by: Xiang Xiao --- boards/arm/cxd56xx/common/src/cxd56_ili9340.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/cxd56xx/common/src/cxd56_ili9340.c b/boards/arm/cxd56xx/common/src/cxd56_ili9340.c index b5d83854fd..4f28a8272e 100644 --- a/boards/arm/cxd56xx/common/src/cxd56_ili9340.c +++ b/boards/arm/cxd56xx/common/src/cxd56_ili9340.c @@ -273,7 +273,7 @@ static int cxd56_ili93404ws_recvparam(struct ili9340_lcd_s *lcd, struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd; cxd56_gpio_write(DISPLAY_DC, true); /* Indicate DATA */ - *param = (uint8_t)(SPI_SEND(priv->spi, param) & 0xff); + SPI_RECVBLOCK(priv->spi, param, 1); return OK; }