summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wctdm.c b/wctdm.c
index 05ec616..644b4fe 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -1810,7 +1810,7 @@ static int wctdm_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
wc->mod[chan->chanpos - 1].fxs.idletxhookstate = 0x6; /* OHT mode when idle */
else
wc->mod[chan->chanpos - 1].fxs.idletxhookstate = 0x2;
- if (wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x1) {
+ if (wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x1 || wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x5) {
/* Apply the change if appropriate */
if (reversepolarity)
wc->mod[chan->chanpos - 1].fxs.lasttxhook = 0x6;