From: Martin Pycko Date: Tue, 3 Jun 2003 16:33:40 +0000 (+0000) Subject: For MF tones don't return the 0'os from the matrix X-Git-Tag: 0.5.0~425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1cb4cc98ab5b75d65c9a1fbfd8b520f8a01a9f44;p=thirdparty%2Fasterisk.git For MF tones don't return the 0'os from the matrix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1071 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/dsp.c b/dsp.c index 1d058e694b..cf3298fc08 100755 --- a/dsp.c +++ b/dsp.c @@ -700,7 +700,8 @@ static int mf_detect (mf_detect_state_t *s, } hit = 0; - sofarsogood=1; + if (best1 != best2) sofarsogood=1; + else sofarsogood=0; /* Check for relative energies */ for (i=0;i<6;i++) { if (i == best1) continue;