diff options
author | Mike Ryan <mikeryan@lacklustre.net> | 2015-12-24 17:07:24 -0800 |
---|---|---|
committer | Mike Ryan <mikeryan@lacklustre.net> | 2015-12-24 17:07:24 -0800 |
commit | 72e491e14f1ec98a12aa8e42106bbcae87eb59a5 (patch) | |
tree | 1ff8cfc1f1780061fbee2a4d0826ab0e09ac67c6 /host/libubertooth | |
parent | 9848cd9aefe104c890382d9c420704536ebf4c06 (diff) |
le: report rssi in firmware and display in command output
Diffstat (limited to 'host/libubertooth')
-rw-r--r-- | host/libubertooth/src/ubertooth.c | 4 |
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; |