From: Ian Abbott Date: Thu, 1 Dec 2011 15:37:43 +0000 (+0000) Subject: libcomedi: don't ignore channel in comedi_set_clock_source() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2665ee5627ee41f749cf02359c2e827cb28d5673;p=comedilib.git libcomedi: don't ignore channel in comedi_set_clock_source() Fix bug reported by Finn Hoffman on comedi email list. --- diff --git a/lib/insn_config_wrappers.c b/lib/insn_config_wrappers.c index 3fc8f56..5bd73d0 100644 --- a/lib/insn_config_wrappers.c +++ b/lib/insn_config_wrappers.c @@ -166,7 +166,7 @@ int _comedi_set_clock_source(comedi_t *device, unsigned subdevice, unsigned chan memset(&insn, 0, sizeof(comedi_insn)); insn.insn = INSN_CONFIG; insn.subdev = subdevice; - insn.chanspec = 0; + insn.chanspec = channel; insn.data = data; insn.n = sizeof(data) / sizeof(data[0]); data[0] = INSN_CONFIG_SET_CLOCK_SRC;