summaryrefslogtreecommitdiff
path: root/wcfxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcfxs.c')
-rwxr-xr-xwcfxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcfxs.c b/wcfxs.c
index 1106bab..e6a1860 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1175,7 +1175,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
if (wc->lasttxhook[chan->chanpos - 1] == 0x1) {
/* Apply the change if appropriate */
wc->lasttxhook[chan->chanpos - 1] = 0x2;
- wcfxs_setreg(wc, x, 64, wc->lasttxhook[chan->chanpos - 1]);
+ wcfxs_setreg(wc, chan->chanpos - 1, 64, wc->lasttxhook[chan->chanpos - 1]);
}
break;
case WCFXS_GET_STATS: