summaryrefslogtreecommitdiff
path: root/gr-comedi
diff options
context:
space:
mode:
authorJohnathan Corgan <jcorgan@corganenterprises.com>2011-07-26 16:49:17 -0700
committerJohnathan Corgan <jcorgan@corganenterprises.com>2011-07-26 16:50:24 -0700
commit8cb0981894000e8239ee2425b4e99ded9841604a (patch)
tree6a7fcdeb3185ba75d7a6a788814eae33d1a824e2 /gr-comedi
parent7ab44e1b23a1a9307b5edfc12dcd4f4b7c834a6e (diff)
comedi: fix to use comedi 0.8 API
Diffstat (limited to 'gr-comedi')
-rw-r--r--gr-comedi/src/comedi_sink_s.cc2
-rw-r--r--gr-comedi/src/comedi_source_s.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-comedi/src/comedi_sink_s.cc b/gr-comedi/src/comedi_sink_s.cc
index d4a6687588..fc5c14931a 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());
diff --git a/gr-comedi/src/comedi_source_s.cc b/gr-comedi/src/comedi_source_s.cc
index a52d04e2a3..5d9f2f6b0f 100644
--- a/gr-comedi/src/comedi_source_s.cc
+++ b/gr-comedi/src/comedi_source_s.cc
@@ -85,7 +85,7 @@ comedi_source_s::comedi_source_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());