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 <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c6ae5e42c0
commit
2e3473c9d6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue