diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-09-16 18:19:00 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-09-16 18:19:00 +0000 |
commit | bf8a1e481b0e150d8d51f877d6a1ebdbe0e3ae8a (patch) | |
tree | 6dde1a04002a7136513eb5787dee82fb566983fe /drivers/dahdi/wct4xxp | |
parent | 893ebcaf4ed44480772013153fed295710d9c074 (diff) |
wct4xxp: Check the alarm state if we're debouncing a red alarm.
This fixes a problem where if you set the alarmdebounce module parameter on
gen2+ cards, you never detect when you go into red alarm.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7147 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index bbfdda9..a2f75a3 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2612,8 +2612,9 @@ static void t4_do_counters(struct t4 *wc) int docheck=0; spin_lock(&wc->reglock); - if (ts->loopupcnt || ts->loopdowncnt) + if (ts->loopupcnt || ts->loopdowncnt || ts->alarmcount) docheck++; + if (ts->alarmtimer) { if (!--ts->alarmtimer) { docheck++; |