From bf8a1e481b0e150d8d51f877d6a1ebdbe0e3ae8a Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 16 Sep 2009 18:19:00 +0000 Subject: 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 --- drivers/dahdi/wct4xxp/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/dahdi/wct4xxp') 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++; -- cgit v1.2.3