From eae970701c17ffef2f536f7c5f500a7e462f1828 Mon Sep 17 00:00:00 2001 From: sruffell Date: Wed, 27 Feb 2008 01:13:05 +0000 Subject: Increase the battery debounce from 64ms to 1 second. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3883 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- kernel/wctdm.c | 2 +- kernel/wctdm24xxp/wctdm24xxp.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/wctdm.c b/kernel/wctdm.c index 02ffa40..83b1c31 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 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" */ diff --git a/kernel/wctdm24xxp/wctdm24xxp.h b/kernel/wctdm24xxp/wctdm24xxp.h index fd7f39b..4d245e9 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 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 */ -- cgit v1.2.3