projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos/telelco-v3.0: Show backlight/contrast value as percent
[fw/altos]
/
src
/
stmf0
/
ao_crc.h
diff --git
a/src/stmf0/ao_crc.h
b/src/stmf0/ao_crc.h
index b6d91023bde46e4fa8ba37df4a1647f850973d47..59e7e7a6d427b74550e52bb874cb7773aba68d31 100644
(file)
--- a/
src/stmf0/ao_crc.h
+++ b/
src/stmf0/ao_crc.h
@@
-36,7
+36,7
@@
static inline uint16_t
ao_crc_in_32_out_16(uint32_t v) {
stm_crc.dr.u32 = v;
v = stm_crc.dr.u32;
- return
v ^ (v >> 16
);
+ return
(uint16_t) (v ^ (v >> 16)
);
}
static inline uint16_t