From b90e3e2dfdc57dda0a2da6219f5237b4e065456e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 3 Mar 2011 17:52:00 -0300 Subject: [PATCH] usrp/fft.c (do_fft): don't output the sample number when dumping gnuplot already maintains the sample count in $0 --- usrp/fft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usrp/fft.c b/usrp/fft.c index 3bb12b9..b01bc7f 100644 --- a/usrp/fft.c +++ b/usrp/fft.c @@ -175,7 +175,7 @@ static void do_fft(int skip, int dump, int low, int high, double threshold, if (dump) { for (i = 0; i != n/split; i++) - printf("%d %g\n", i, + printf("%g\n", 10*log(res[(i+(n/split)/2) % (n/split)])/log(10)); } else { /* @@@ need to think about supporting averaged FFT here later */