1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

DATV demod: more cleanup

This commit is contained in:
f4exb 2019-03-24 19:59:06 +01:00
parent 94cd6b0f0d
commit 8699bdcbc4

View File

@ -306,7 +306,7 @@ struct fir_filter : runnable
T *pc = shifted_coeffs;
T *pi = pin;
T x = 0;
for (unsigned int i = ncoeffs; i--; ++pc, --pi)
for (int i = ncoeffs; i--; ++pc, --pi)
x = x + (*pc) * (*pi);
*pout = x;
}
@ -325,7 +325,7 @@ struct fir_filter : runnable
float current_freq;
void set_freq(float f)
{
for (unsigned int i = 0; i < ncoeffs; ++i)
for (int i = 0; i < ncoeffs; ++i)
{
float a = 2 * M_PI * f * (i - ncoeffs / 2);
float c = cosf(a), s = sinf(a);