From 7c14f876a03085f1659c10c1dd408d98488a65bb Mon Sep 17 00:00:00 2001 From: Yan Date: Sat, 10 Apr 2021 13:47:33 +0200 Subject: [PATCH] hackrf_sweep: initialise sweep_rate Thanks to dmaltsiniotis for spotting this. --- host/hackrf-tools/src/hackrf_sweep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index 9a22ad56..6890f782 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -398,7 +398,7 @@ int main(int argc, char** argv) { struct timeval time_now; struct timeval time_prev; float time_diff; - float sweep_rate; + float sweep_rate = 0; unsigned int lna_gain=16, vga_gain=20; uint32_t freq_min = 0; uint32_t freq_max = 6000;