summaryrefslogtreecommitdiff
path: root/test/sdr_fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/sdr_fm.c')
-rw-r--r--test/sdr_fm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sdr_fm.c b/test/sdr_fm.c
index 80df657..a7f5551 100644
--- a/test/sdr_fm.c
+++ b/test/sdr_fm.c
@@ -177,13 +177,13 @@ float to_float(uint8_t x) {
//float ph_ch( uint8_t i1, uint8_t q1, uint8_t i2, uint8_t q2)
float ph_ch( uint8_t i1, uint8_t q1 )
{
- static float complex last=CMPLXF(0.0f, 0.0f);
+ static float complex last=0.0+0.0i;
float out;
float complex xy,c1;
//float c2;
- //c1 = to_float(i1) + I*to_float(q1);
- c1 = CMPLXF( to_float(i1), to_float(q1) );
+ c1 = to_float(i1) + I*to_float(q1);
+ //c1 = CMPLXF( to_float(i1), to_float(q1) );
//c2 = to_float(i2) + I*to_float(q2);
//c2 = CMPLXF( to_float(i2), to_float(q2) );
xy = conjf(last)*c1;