summaryrefslogtreecommitdiff
path: root/gr-comedi/src/comedi_sink_s.cc
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-26 16:49:17 -0700
committerJohnathan Corgan2011-07-26 16:50:24 -0700
commit8cb0981894000e8239ee2425b4e99ded9841604a (patch)
tree6a7fcdeb3185ba75d7a6a788814eae33d1a824e2 /gr-comedi/src/comedi_sink_s.cc
parent7ab44e1b23a1a9307b5edfc12dcd4f4b7c834a6e (diff)
downloadgnuradio-8cb0981894000e8239ee2425b4e99ded9841604a.tar.gz
gnuradio-8cb0981894000e8239ee2425b4e99ded9841604a.tar.bz2
gnuradio-8cb0981894000e8239ee2425b4e99ded9841604a.zip
comedi: fix to use comedi 0.8 API
Diffstat (limited to 'gr-comedi/src/comedi_sink_s.cc')
-rw-r--r--gr-comedi/src/comedi_sink_s.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-comedi/src/comedi_sink_s.cc b/gr-comedi/src/comedi_sink_s.cc
index d4a668758..fc5c14931 100644
--- a/gr-comedi/src/comedi_sink_s.cc
+++ b/gr-comedi/src/comedi_sink_s.cc
@@ -88,7 +88,7 @@ comedi_sink_s::comedi_sink_s (int sampling_freq,
comedi_cmd cmd;
int ret;
- ret = comedi_get_cmd_generic_timed(d_dev,d_subdevice,&cmd,(unsigned int)(1e9/sampling_freq));
+ ret = comedi_get_cmd_generic_timed(d_dev,d_subdevice,&cmd,d_n_chan,(unsigned int)(1e9/sampling_freq));
if(ret<0)
bail ("comedi_get_cmd_generic_timed", comedi_errno());