[asterisk-commits] mnicholson: trunk r328163 - in /trunk: ./	main/dsp.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Thu Jul 14 12:47:43 CDT 2011
    
    
  
Author: mnicholson
Date: Thu Jul 14 12:47:40 2011
New Revision: 328163
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=328163
Log:
Merged revisions 328162 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.10
........
  r328162 | mnicholson | 2011-07-14 12:46:32 -0500 (Thu, 14 Jul 2011) | 3 lines
  
  tune the v21 preamble detector to properly detect the desired sequence of hits
  and misses
........
Modified:
    trunk/   (props changed)
    trunk/main/dsp.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.10-merged (original)
+++ branch-1.10-merged Thu Jul 14 12:47:40 2011
@@ -1,1 +1,1 @@
-/branches/1.10:1-328075,328120
+/branches/1.10:1-328075,328120,328162
Modified: trunk/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/dsp.c?view=diff&rev=328163&r1=328162&r2=328163
==============================================================================
--- trunk/main/dsp.c (original)
+++ trunk/main/dsp.c Thu Jul 14 12:47:40 2011
@@ -624,10 +624,10 @@
 		}
 
 		if (hit) {
-			if (s->hit_count == 0 || s->miss_count == 3) {
+			if (s->miss_count == 3) {
 				s->hit_count++;
 			} else {
-				s->hit_count = 0;
+				s->hit_count = 1;
 			}
 
 			s->miss_count = 0;
    
    
More information about the asterisk-commits
mailing list