diff options
| author | Keith Packard <keithp@keithp.com> | 2013-04-29 23:20:25 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:07:54 -0700 | 
| commit | eb0e1720be2aa4fb6729ceada09c18947bfee2bc (patch) | |
| tree | 77bfbad77fa2d2f653c9bf6814b7d63607672a77 /src/drivers/ao_packet.c | |
| parent | 949700f276b80b4eb28f15b5559714f430f227f1 (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.c | 4 | 
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  	 */  | 
