diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-20 23:16:11 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-20 23:16:11 +0000 |
commit | ab251c36eb918dc5dc7c70e04ba1b2f11e288a4f (patch) | |
tree | e407262a6c9e59f467de61ebd3cef624e6645618 | |
parent | b0e90f202d6b6fe07dbece6a437cfa8afebdc95b (diff) |
Fix 2nd harmonic on MF
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@669 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ static int mf_detect (mf_detect_state_t *s, /* Check for 2nd harmonic */ if (goertzel_result(&s->tone_out2nd[best1]) * MF_2ND_HARMONIC > tone_energy[best1]) sofarsogood = 0; - else if (goertzel_result(&s->tone_out2nd[best1]) * MF_2ND_HARMONIC > tone_energy[best2]) + else if (goertzel_result(&s->tone_out2nd[best2]) * MF_2ND_HARMONIC > tone_energy[best2]) sofarsogood = 0; } if (sofarsogood) { |