projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54712cb
)
libcomedi: don't ignore channel in comedi_set_clock_source()
author
Ian Abbott
<abbotti@mev.co.uk>
Thu, 1 Dec 2011 15:37:43 +0000
(15:37 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Thu, 1 Dec 2011 15:37:43 +0000
(15:37 +0000)
Fix bug reported by Finn Hoffman on comedi email list.
lib/insn_config_wrappers.c
patch
|
blob
|
history
diff --git
a/lib/insn_config_wrappers.c
b/lib/insn_config_wrappers.c
index 3fc8f56d510ed37ebb4376b5b85f651b9bea54fd..5bd73d0684f802c3ef3cbebac70e25592e1a83ae 100644
(file)
--- 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;