fix(stm): receive 16 bit values with spi
1 files changed, 1 insertions(+), 1 deletions(-) M stm_spi_funduino/src/spi.c
M stm_spi_funduino/src/spi.c => stm_spi_funduino/src/spi.c +1 -1
@@ 55,7 55,7 @@ uint16_t spi_receive(spi_t *spi, uint16_t *buffer, uint16_t max_size) { uint16_t size = 0; while (size < max_size && (spi->periph->SR & SPI_SR_RXNE)) { *(buffer + (size++)) = (char)(spi->periph->DR & SPI_DR_DR_Msk); *(buffer + (size++)) = (uint16_t)(spi->periph->DR & SPI_DR_DR_Msk); } return size;