summaryrefslogtreecommitdiff
path: root/wct1xxp.c
diff options
context:
space:
mode:
authormatteo <matteo@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-03-13 06:00:34 +0000
committermatteo <matteo@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-03-13 06:00:34 +0000
commitcddcc315433c262a54bbe769d281a0b9c0526d55 (patch)
treef3a4b69bbfcbad7f53007098c59d64306322c27f /wct1xxp.c
parent6707996d1ada38fb52d4ad3920b6549d38277ce5 (diff)
Thu Mar 13 07:00:01 CET 2003
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@152 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct1xxp.c')
-rwxr-xr-xwct1xxp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wct1xxp.c b/wct1xxp.c
index a90a19b..9dee855 100755
--- a/wct1xxp.c
+++ b/wct1xxp.c
@@ -1020,8 +1020,9 @@ static void __t1xxp_check_alarms(struct t1xxp *wc)
__t1_set_reg(wc, 0x0a, 0x40); /* Remote Loop */
wc->span.maintstat = ZT_MAINT_REMOTELOOP;
}
- } else
+ } else {
wc->loopupcnt = 0;
+ }
/* Same for loopdown code */
if ((!wc->span.mainttimer) && (c & 0x40)) {
/* Loop-down code detected */
@@ -1155,7 +1156,9 @@ static void t1xxp_interrupt(int irq, void *dev_id, struct pt_regs *regs)
__t1xxp_check_sigbits(wc, x);
break;
case 4:
- __t1xxp_check_alarms(wc);
+ /* Check alarms 1/4 as frequently */
+ if (!(wc->intcount & 0x30))
+ __t1xxp_check_alarms(wc);
break;
}