From 10875af5cff7c80ab08160351774a5d7eb5ca2dd Mon Sep 17 00:00:00 2001 From: file Date: Wed, 17 May 2006 21:14:31 +0000 Subject: Merged revisions 1069 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1069 | file | 2006-05-17 18:13:27 -0300 (Wed, 17 May 2006) | 2 lines 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/trunk@1070 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 b034fc2..0403e3a 100644 --- a/wctdm.c +++ b/wctdm.c @@ -1084,7 +1084,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