fixed bug in frequency reported to binary output of hackrf_sweep
This commit is contained in:
@ -245,7 +245,7 @@ int rx_callback(hackrf_transfer* transfer) {
|
||||
pwr[i] = logPower(fftwOut[i], 1.0f / fftSize);
|
||||
}
|
||||
if(binary_output) {
|
||||
float_freq = frequency + DEFAULT_SAMPLE_RATE_HZ / 4;
|
||||
float_freq = frequency;
|
||||
float_freq /= FREQ_ONE_MHZ;
|
||||
fwrite(&float_freq, sizeof(float), 1, stdout);
|
||||
fwrite(&pwr[1+(fftSize*5)/8], sizeof(float), fftSize/4, stdout);
|
||||
|
Reference in New Issue
Block a user