From e305cd37410beb39410b42d787919f9406a8f860 Mon Sep 17 00:00:00 2001 From: file Date: Wed, 17 May 2006 21:13:27 +0000 Subject: Don't change the value of lasttxhook, instead do a comparison. (issue #7175 reported and fixed by Thomas Andrews) If this breaks things, you can yell at me. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1069 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wctdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wctdm.c') diff --git a/wctdm.c b/wctdm.c index 42228ec..743867d 100644 --- a/wctdm.c +++ b/wctdm.c @@ -1083,7 +1083,7 @@ static void wctdm_interrupt(int irq, void *dev_id, struct pt_regs *regs) wc->mod[x].fxs.idletxhookstate = 0x5; /* Switch to active */ else wc->mod[x].fxs.idletxhookstate = 0x1; - if ((wc->mod[x].fxs.lasttxhook == 0x2) || (wc->mod[x].fxs.lasttxhook = 0x6)) { + if ((wc->mod[x].fxs.lasttxhook == 0x2) || (wc->mod[x].fxs.lasttxhook == 0x6)) { /* Apply the change if appropriate */ if (reversepolarity) wc->mod[x].fxs.lasttxhook = 0x5; -- cgit v1.2.3