projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos/stm32l0: Add casts to reduce -Wconversion warnings
[fw/altos]
/
src
/
stm32l0
/
ao_arch_funcs.h
diff --git
a/src/stm32l0/ao_arch_funcs.h
b/src/stm32l0/ao_arch_funcs.h
index 297bd66c76684b9762fba85f6e67f68fd7b206a3..f03d96957802674ffc22d54b009be87805c15119 100644
(file)
--- a/
src/stm32l0/ao_arch_funcs.h
+++ b/
src/stm32l0/ao_arch_funcs.h
@@
-133,7
+133,7
@@
ao_spi_recv_byte(uint8_t spi_index)
stm_spi->dr = 0xff;
while (!(stm_spi->sr & (1 << STM_SPI_SR_RXNE)))
;
- return stm_spi->dr;
+ return
(uint8_t)
stm_spi->dr;
}
void