Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv23894

Modified Files:
        wctdm.c 
Log Message:
use proper values for debounce periods (in 4ms increments, not 1ms increments)


Index: wctdm.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wctdm.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- wctdm.c     11 May 2005 23:43:11 -0000      1.111
+++ wctdm.c     8 Jun 2005 18:36:43 -0000       1.112
@@ -248,9 +248,14 @@
 #define FLAG_WRITE     1
 #define FLAG_READ      2
 
-#define RING_DEBOUNCE  64              /* Ringer Debounce (in ms) */
-#define DEFAULT_BATT_DEBOUNCE  64              /* Battery debounce (in ms) */
-#define POLARITY_DEBOUNCE 64           /* Polarity debounce (in ms) */
+/* the constants below control the 'debounce' periods enforced by the
+   check_hook routines; these routines are called once every 4 interrupts
+   (the interrupt cycles around the four modules), so the periods are
+   specified in _4 millisecond_ increments
+*/
+#define RING_DEBOUNCE          16              /* Ringer Debounce (64 ms) */
+#define DEFAULT_BATT_DEBOUNCE  16              /* Battery debounce (64 ms) */
+#define POLARITY_DEBOUNCE      16              /* Polarity debounce (64 ms) */
 #define DEFAULT_BATT_THRESH    3               /* Anything under this is "no 
battery" */
 
 #define OHT_TIMER              6000    /* How long after RING to retain OHT */

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to