projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Clean up radio CRC handling
[fw/altos]
/
src
/
drivers
/
ao_cc1120.c
diff --git
a/src/drivers/ao_cc1120.c
b/src/drivers/ao_cc1120.c
index c974613e0a49f2cb60280446f54cd0bb277d7a60..30663042677668e17bcb35cf3170341268e9d738 100644
(file)
--- a/
src/drivers/ao_cc1120.c
+++ b/
src/drivers/ao_cc1120.c
@@
-690,12
+690,7
@@
ao_radio_recv(__xdata void *d, uint8_t size)
ao_radio_put();
ao_radio_put();
- /* Construct final packet */
-
- if (ret && ((uint8_t *) d)[size] == 0 && ((uint8_t *)d)[size+1] == 0)
- ((uint8_t *) d)[size + 1] = 0x80;
- else
- ((uint8_t *) d)[size + 1] = 0x00;
+ /* Store the received RSSI value; the crc-OK byte is already done */
((uint8_t *) d)[size] = (uint8_t) rssi;
((uint8_t *) d)[size] = (uint8_t) rssi;