diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-05-17 21:13:27 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-05-17 21:13:27 +0000 |
commit | e305cd37410beb39410b42d787919f9406a8f860 (patch) | |
tree | f91a73de7228eec9102c16d85f603737e0869835 /wctdm.c | |
parent | 1fc7e292d9cf41a190a3a05d8ab6c7fa9e16f65e (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |