diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-29 23:20:25 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-29 23:20:25 -0700 |
commit | 491771214bd1853aa18afa5d7848309b5f413e49 (patch) | |
tree | e4ba0c48537a5d8269e89c014830547a3083ed28 /src/core/ao_packet.h | |
parent | 18cc254bcda7707740d6dd723f3a2963780441de (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/core/ao_packet.h')
-rw-r--r-- | src/core/ao_packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_packet.h b/src/core/ao_packet.h index 6d121bb9..b8426cf9 100644 --- a/src/core/ao_packet.h +++ b/src/core/ao_packet.h @@ -68,7 +68,7 @@ _ao_packet_pollchar(void); #if PACKET_HAS_MASTER /* ao_packet_master.c */ -extern __xdata uint8_t ao_packet_last_rssi; +extern __xdata int8_t ao_packet_last_rssi; void ao_packet_master_init(void); |