Commit ede6775a authored by Thomas Schlichter's avatar Thomas Schlichter

fix for compilers that don't support the CMPLX() macro

parent 0eb409f1
......@@ -166,7 +166,11 @@ void rxAddInput(const c16_t *input_sig,
}
if (channelDesc->Doppler_phase_inc != 0.0) {
#ifdef CMPLX
double complex in = CMPLX(rx_tmp.r, rx_tmp.i);
#else
double complex in = rx_tmp.r + rx_tmp.i * I;
#endif
double complex out = in * cexp(channelDesc->Doppler_phase_cur[rxAnt] * I);
rx_tmp.r = creal(out);
rx_tmp.i = cimag(out);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment