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

This commit is contained in:
Thomas Schlichter
2024-08-23 14:57:48 +02:00
parent 0eb409f114
commit ede6775ac3
+4
View File
@@ -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);