summaryrefslogtreecommitdiff
path: root/src/cc1111
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-06-19 22:42:58 -0700
committerKeith Packard <keithp@keithp.com>2013-06-19 22:42:58 -0700
commit572faa19b9a496866e3b589d5eb9f37a680206ab (patch)
tree1fb750c9e1594a2e724774523ac91828ceacbe0e /src/cc1111
parent025beb0fea011d0e3dab59b5d16e7ffae97c613c (diff)
altos/cc1111: Fetch RSSI for TeleFire from correct byte
Reading the status byte doesn't provide very useful RSSI info Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-rw-r--r--src/cc1111/ao_radio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_radio.c b/src/cc1111/ao_radio.c
index 88b8f686..190647ce 100644
--- a/src/cc1111/ao_radio.c
+++ b/src/cc1111/ao_radio.c
@@ -374,7 +374,7 @@ ao_radio_recv(__xdata void *packet, uint8_t size, uint8_t timeout) __reentrant
}
#if NEED_RADIO_RSSI
else
- ao_radio_rssi = AO_RSSI_FROM_RADIO(((uint8_t *)packet)[size - 1]);
+ ao_radio_rssi = AO_RSSI_FROM_RADIO(((uint8_t *)packet)[size - 2]);
#endif
ao_radio_put();
return ao_radio_dma_done;