projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos/stm32f103-nucleo: Drive a screen too
[fw/altos]
/
src
/
stm32l0
/
ao_spi_stm32l0.c
diff --git
a/src/stm32l0/ao_spi_stm32l0.c
b/src/stm32l0/ao_spi_stm32l0.c
index b8831d5aefa2b0cf925823366706d15153863846..4f76c6c2de96e2ce9b1b1cbda3846598051ecad5 100644
(file)
--- 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
}