diff --git a/host_applications/linux/apps/hello_pi/hello_fft/hello_fft.c b/host_applications/linux/apps/hello_pi/hello_fft/hello_fft.c index 90317a4..8ba1eba 100644 --- a/host_applications/linux/apps/hello_pi/hello_fft/hello_fft.c +++ b/host_applications/linux/apps/hello_pi/hello_fft/hello_fft.c @@ -80,8 +80,8 @@ int main(int argc, char *argv[]) { for (j=0; jin + j*fft->step; // input buffer for (i=0; iout + j*fft->step; // output buffer - freq = j+1; + freq = (j+1) & (N/2-1); for (i=0; i