We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8f0d5 commit f6df9e3Copy full SHA for f6df9e3
python_hackrf/pyhackrf_tools/pyhackrf_sweep.pyx
@@ -84,7 +84,7 @@ def sweep_callback(object device, cnp.ndarray[cnp.int8_t, ndim=1] buffer, int bu
84
cdef str time_str = timestamp.strftime('%Y-%m-%d, %H:%M:%S.%f')
85
86
cdef dict current_device_data = device_data[device.serialno]
87
- cdef double norm_factor = current_device_data['sample_rate'] / current_device_data['fft_size']
+ cdef double norm_factor = 1 / (current_device_data['sample_rate'] * current_device_data['fft_size'])
88
cdef uint32_t data_length = current_device_data['fft_size'] * 2
89
cdef object sweep_style = current_device_data['sweep_style']
90
cdef uint32_t sample_rate = current_device_data['sample_rate']
0 commit comments