summaryrefslogtreecommitdiff
path: root/test/sdr_fm.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-23 18:02:26 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-23 18:02:26 +0000
commit704f47c888ad33e2064a0bd1ec740a6a1823411d (patch)
tree63e1a517813ce1c96d14d8283d84ea8f0eeb0316 /test/sdr_fm.c
parent509c6f05b2ae770b9bee253621fad7be442fac1e (diff)
downloadradiola-704f47c888ad33e2064a0bd1ec740a6a1823411d.tar.gz
radiola-704f47c888ad33e2064a0bd1ec740a6a1823411d.zip
Removed some constanst that appears in c11
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;