aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-03 16:33:40 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-03 16:33:40 +0000
commitb3d3f6dfc5c0086d257bc8d1b2b74c23ee8f00e0 (patch)
treebd1966441833e92b37985fe5bb64d3dafe291ad7 /dsp.c
parent4ff8b4e77de6a2d2ea278a15bfbe3cb8af7cad3b (diff)
For MF tones don't return the 0'os from the matrix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1071 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dsp.c b/dsp.c
index 1d058e694..cf3298fc0 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;