diff options
author | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-27 01:13:05 +0000 |
---|---|---|
committer | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-27 01:13:05 +0000 |
commit | eae970701c17ffef2f536f7c5f500a7e462f1828 (patch) | |
tree | aab4272b69b60e8afdc540b0b8ae4a1f259b79c1 | |
parent | 90fd8c75a55f3b208947517203f467cde965536c (diff) |
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
-rw-r--r-- | kernel/wctdm.c | 2 | ||||
-rw-r--r-- | 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 */ |