summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-28 06:01:47 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-28 06:01:47 +0000
commit26b56110d2b130e7816ade9f201cc2eeebd0cdc9 (patch)
tree55817412f1762e3475acc5e4d17fe3afa56f4b39
parentde841f621272ba0c7872a1e0fccf2dd928012325 (diff)
Undoing the change in revision 3883 until there can be more thought about the
best place to configure the battery debounce time. Too short and erroneous alarms are generated. Too long, and asterisk won't detect when the remote side disconnects. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3892 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--kernel/wctdm.c2
-rw-r--r--kernel/wctdm24xxp/wctdm24xxp.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/wctdm.c b/kernel/wctdm.c
index 83b1c31..02ffa40 100644
--- a/kernel/wctdm.c
+++ b/kernel/wctdm.c
@@ -254,7 +254,7 @@ static struct fxo_mode {
(the interrupt cycles around the four modules), so the periods are
specified in _4 millisecond_ increments
*/
-#define DEFAULT_BATT_DEBOUNCE 62 /* Battery debounce (1000 ms) */
+#define DEFAULT_BATT_DEBOUNCE 4 /* Battery debounce (64 ms) */
#define POLARITY_DEBOUNCE 4 /* Polarity debounce (64 ms) */
#define DEFAULT_BATT_THRESH 3 /* Anything under this is "no battery" */
diff --git a/kernel/wctdm24xxp/wctdm24xxp.h b/kernel/wctdm24xxp/wctdm24xxp.h
index 4d245e9..fd7f39b 100644
--- a/kernel/wctdm24xxp/wctdm24xxp.h
+++ b/kernel/wctdm24xxp/wctdm24xxp.h
@@ -38,8 +38,8 @@
* instead of 128 ms. Which one is more appropriate?
*/
#define DEFAULT_RING_DEBOUNCE 128
-#define DEFAULT_BATT_DEBOUNCE 1000 /* Battery debounce (in ms) */
-#define POLARITY_DEBOUNCE 64 /* Polarity debounce (in ms) */
+#define DEFAULT_BATT_DEBOUNCE 64 /* 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 */