summaryrefslogtreecommitdiff
path: root/src/drivers/ao_packet.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-29 23:20:25 -0700
committerKeith Packard <keithp@keithp.com>2013-04-29 23:20:25 -0700
commit491771214bd1853aa18afa5d7848309b5f413e49 (patch)
treee4ba0c48537a5d8269e89c014830547a3083ed28 /src/drivers/ao_packet.c
parent18cc254bcda7707740d6dd723f3a2963780441de (diff)
altos: Compute "real" RSSI value in radio code as needed
Instead of dragging around the weird CC1111 RSSI values, just compute a dBm value in a signed 8-bit integer, ao_radio_rssi. Use that everywhere we need RSSI internally. We leave the weird CC1111 value in the packet reply as that's what the host expects. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_packet.c')
-rw-r--r--src/drivers/ao_packet.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/drivers/ao_packet.c b/src/drivers/ao_packet.c
index 802d4c90..8cdf85a9 100644
--- a/src/drivers/ao_packet.c
+++ b/src/drivers/ao_packet.c
@@ -31,7 +31,6 @@ __xdata uint8_t ao_packet_restart;
#if PACKET_HAS_MASTER
__xdata uint8_t ao_packet_master_sleeping;
-__xdata uint8_t ao_packet_last_rssi;
#endif
void
@@ -85,9 +84,6 @@ ao_packet_recv(void)
if (!(ao_rx_packet.status & AO_RADIO_STATUS_CRC_OK))
return 0;
-#if PACKET_HAS_MASTER
- ao_packet_last_rssi = ao_rx_packet.rssi;
-#endif
/* Accept packets with matching call signs, or any packet if
* our callsign hasn't been configured
*/