From 74aea3266ee7c0a7a27a55ad2392e6979ed03f46 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sat, 4 Feb 2017 09:58:04 -0700 Subject: [PATCH] Made hackrf_sweep output more like rtl_power's. --- host/hackrf-tools/src/hackrf_sweep.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index cc71059c..399799b9 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -201,7 +201,8 @@ int rx_callback(hackrf_transfer* transfer) { * write output to pipe */ int8_t* buf; - float frequency; + uint16_t frequency; + float float_freq; int i, j; if( fd != NULL ) { @@ -210,6 +211,13 @@ int rx_callback(hackrf_transfer* transfer) { for(j=0; j