Update comms/geoid to version 1.0_7
[dports.git] / comms / qsstv / files / patch-src_drmrx_demodulator.cpp
1 --- src/drmrx/demodulator.cpp.orig      2014-04-10 14:48:35.000000000 -0700
2 +++ src/drmrx/demodulator.cpp   2014-04-10 14:49:48.000000000 -0700
3 @@ -941,7 +941,7 @@
4            temp2 += actual_pilots[2 * j] * next_pilots[2 * j + 1] -actual_pilots[2 * j + 1] * next_pilots[2 * j];
5  
6          }
7 -      if (i != 0)  delta_freq_offset = (float) atan2(temp2, temp1 + MIN_ABS_H);
8 +      if (i != 0)  delta_freq_offset = (float) atan2(temp2, (float)(temp1 + MIN_ABS_H));
9  
10        for (j = 0; j < K_max - K_min + 1; j++)
11          {