[zaptel-commits] sruffell: branch 1.4 r3883 - in /branches/1.4/kernel: ./ wctdm24xxp/

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Feb 26 19:13:06 CST 2008


Author: sruffell
Date: Tue Feb 26 19:13:05 2008
New Revision: 3883

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3883
Log:
Increase the battery debounce from 64ms to 1 second.


Modified:
    branches/1.4/kernel/wctdm.c
    branches/1.4/kernel/wctdm24xxp/wctdm24xxp.h

Modified: branches/1.4/kernel/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm.c?view=diff&rev=3883&r1=3882&r2=3883
==============================================================================
--- branches/1.4/kernel/wctdm.c (original)
+++ branches/1.4/kernel/wctdm.c Tue Feb 26 19:13:05 2008
@@ -254,7 +254,7 @@
    (the interrupt cycles around the four modules), so the periods are
    specified in _4 millisecond_ increments
 */
-#define DEFAULT_BATT_DEBOUNCE	4		/* Battery debounce (64 ms) */
+#define DEFAULT_BATT_DEBOUNCE	62		/* Battery debounce (1000 ms) */
 #define POLARITY_DEBOUNCE 	4		/* Polarity debounce (64 ms) */
 #define DEFAULT_BATT_THRESH	3		/* Anything under this is "no battery" */
 

Modified: branches/1.4/kernel/wctdm24xxp/wctdm24xxp.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm24xxp/wctdm24xxp.h?view=diff&rev=3883&r1=3882&r2=3883
==============================================================================
--- branches/1.4/kernel/wctdm24xxp/wctdm24xxp.h (original)
+++ branches/1.4/kernel/wctdm24xxp/wctdm24xxp.h Tue Feb 26 19:13:05 2008
@@ -38,8 +38,8 @@
  *       instead of 128 ms.  Which one is more appropriate?
  */
 #define DEFAULT_RING_DEBOUNCE	128
-#define DEFAULT_BATT_DEBOUNCE	64		/* Battery debounce (in ms) */
-#define POLARITY_DEBOUNCE 64           /* Polarity debounce (in ms) */
+#define DEFAULT_BATT_DEBOUNCE	1000		/* Battery debounce (in ms) */
+#define POLARITY_DEBOUNCE	64		/* Polarity debounce (in ms) */
 #define DEFAULT_BATT_THRESH	3		/* Anything under this is "no battery" */
 
 #define OHT_TIMER		6000	/* How long after RING to retain OHT */




More information about the zaptel-commits mailing list