1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/comms/fldigi/files/patch-src_ifkp_ifkp.cxx
Diane Bruce 39dd7c1d08 Upgrade fldigi
=Version 3.23.03=

FSQ and fixes for FSQ bugs.
Various fixes for Olivia/Contestia, macro bug, WEFAX hang on INFO
Added ifkp modem
2015-10-03 00:47:16 +00:00

19 lines
656 B
C++

--- src/ifkp/ifkp.cxx.orig 2015-10-02 23:20:08 UTC
+++ src/ifkp/ifkp.cxx
@@ -580,9 +580,12 @@ int ifkp::rx_process(const double *buf,
&rx_stream[IFKP_SHIFT_SIZE], // from
IFKP_BLOCK_SIZE*sizeof(*rx_stream)); // # bytes
memset(fft_data, 0, sizeof(fft_data));
- for (int i = 0; i < IFKP_BLOCK_SIZE; i++)
- fft_data[i].real() = fft_data[i].imag() =
- rx_stream[i] * a_blackman[i];
+ for (int i = 0; i < IFKP_BLOCK_SIZE; i++) {
+ fft_data[i].real(
+ rx_stream[i] * a_blackman[i]);
+ fft_data[i].imag(
+ rx_stream[i] * a_blackman[i]);
+ }
fft->ComplexFFT(fft_data);
process_tones();
}