summaryrefslogtreecommitdiff
path: root/wctdm.c
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-17 21:13:27 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-17 21:13:27 +0000
commite305cd37410beb39410b42d787919f9406a8f860 (patch)
treef91a73de7228eec9102c16d85f603737e0869835 /wctdm.c
parent1fc7e292d9cf41a190a3a05d8ab6c7fa9e16f65e (diff)
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
Diffstat (limited to 'wctdm.c')
-rw-r--r--wctdm.c2
1 files changed, 1 insertions, 1 deletions
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;