X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32l0%2Fao_spi_stm32l0.c;h=4f76c6c2de96e2ce9b1b1cbda3846598051ecad5;hb=4fa489276826e33fa5e21d0a94a8ed3e29ebcfd0;hp=b8831d5aefa2b0cf925823366706d15153863846;hpb=e58d08a93818b3d60746f0f17b34e96fbf8ba0e3;p=fw%2Faltos diff --git a/src/stm32l0/ao_spi_stm32l0.c b/src/stm32l0/ao_spi_stm32l0.c index b8831d5a..4f76c6c2 100644 --- a/src/stm32l0/ao_spi_stm32l0.c +++ b/src/stm32l0/ao_spi_stm32l0.c @@ -229,7 +229,7 @@ ao_spi_recv(void *block, uint16_t len, uint8_t spi_index) while ((stm_spi->sr & (1 << STM_SPI_SR_TXE)) == 0); stm_spi->dr = 0xff; while ((stm_spi->sr & (1 << STM_SPI_SR_RXNE)) == 0); - *bytes++ = stm_spi->dr; + *bytes++ = (uint8_t) stm_spi->dr; } #endif }