summaryrefslogtreecommitdiff
path: root/host/libubertooth
diff options
context:
space:
mode:
authorMike Ryan <mikeryan@lacklustre.net>2015-12-24 17:07:24 -0800
committerMike Ryan <mikeryan@lacklustre.net>2015-12-24 17:07:24 -0800
commit72e491e14f1ec98a12aa8e42106bbcae87eb59a5 (patch)
tree1ff8cfc1f1780061fbee2a4d0826ab0e09ac67c6 /host/libubertooth
parent9848cd9aefe104c890382d9c420704536ebf4c06 (diff)
le: report rssi in firmware and display in command output
Diffstat (limited to 'host/libubertooth')
-rw-r--r--host/libubertooth/src/ubertooth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/libubertooth/src/ubertooth.c b/host/libubertooth/src/ubertooth.c
index 34c78cf..0e9bccd 100644
--- a/host/libubertooth/src/ubertooth.c
+++ b/host/libubertooth/src/ubertooth.c
@@ -692,9 +692,9 @@ void cb_btle(ubertooth_t* ut, void* args, usb_pkt_rx *rx, int bank __attribute__
rx_ts += 3276800000;
u32 ts_diff = rx_ts - prev_ts;
prev_ts = rx->clk100ns;
- printf("systime=%u freq=%d addr=%08x delta_t=%.03f ms\n",
+ printf("systime=%u freq=%d addr=%08x delta_t=%.03f ms rssi=%d\n",
systime, rx->channel + 2402, lell_get_access_address(pkt),
- ts_diff / 10000.0);
+ ts_diff / 10000.0, rx->rssi_min - 54);
int len = (rx->data[5] & 0x3f) + 6 + 3;
if (len > 50) len = 50;