summaryrefslogtreecommitdiff
path: root/dsp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-03-20 23:16:11 +0000
committerMark Spencer <markster@digium.com>2003-03-20 23:16:11 +0000
commit5cc201a9cf60944a2dce11816b877207b67ee517 (patch)
treee407262a6c9e59f467de61ebd3cef624e6645618 /dsp.c
parent83016e1bce1286bc6454366025877ad4acc12c29 (diff)
Fix 2nd harmonic on MF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsp.c b/dsp.c
index afcb3fd79..6af5d307f 100755
--- a/dsp.c
+++ b/dsp.c
@@ -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) {