1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 07:25:19 +02:00

usrp/fft.c (do_fft): don't output the sample number when dumping

gnuplot already maintains the sample count in $0
This commit is contained in:
Werner Almesberger 2011-03-03 17:52:00 -03:00
parent c98b91656a
commit b90e3e2dfd

View File

@ -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 */