[aadk-commits] dbailey: uClinux/trunk r386 - /uClinux/trunk/uClinux-dist/linux-2.6.x/drivers...

aadk-commits at lists.digium.com aadk-commits at lists.digium.com
Wed Apr 25 14:02:11 MST 2007


Author: dbailey
Date: Wed Apr 25 16:02:10 2007
New Revision: 386

URL: http://svn.digium.com/view/aadk?view=rev&rev=386
Log:
Fixed debounce counter values dealing with FXO detecting low battery voltage and reverse polarity

Modified:
    uClinux/trunk/uClinux-dist/linux-2.6.x/drivers/zaptel/sx00i.c

Modified: uClinux/trunk/uClinux-dist/linux-2.6.x/drivers/zaptel/sx00i.c
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/linux-2.6.x/drivers/zaptel/sx00i.c?view=diff&rev=386&r1=385&r2=386
==============================================================================
--- uClinux/trunk/uClinux-dist/linux-2.6.x/drivers/zaptel/sx00i.c (original)
+++ uClinux/trunk/uClinux-dist/linux-2.6.x/drivers/zaptel/sx00i.c Wed Apr 25 16:02:10 2007
@@ -240,9 +240,8 @@
 #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) */
+#define DEFAULT_BATT_DEBOUNCE	(64/8)	/* Battery debounce (in ms divided by ms per sample) */
+#define POLARITY_DEBOUNCE 		(64/8)  /* Polarity debounce (in ms divided by ms per sample) */
 #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 aadk-commits mailing list