From 704f47c888ad33e2064a0bd1ec740a6a1823411d Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Wed, 23 Dec 2015 18:02:26 +0000 Subject: Removed some constanst that appears in c11 --- test/sdr_fm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/sdr_fm.c') 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; -- cgit v1.2.3