From b830e61d3f85a416df8b58edc6158f64b2c5230f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 10 Jul 2001 22:31:16 +0000 Subject: [PATCH] Added debug_ptr(). Fixed do_test_for_cmd() --- lib/filler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/filler.c b/lib/filler.c index 0bc8e33..b3a4f5c 100644 --- a/lib/filler.c +++ b/lib/filler.c @@ -52,6 +52,8 @@ int get_subdevices(comedi_t *it) subdevice *r; s=malloc(sizeof(comedi_subdinfo)*it->n_subdevices); + debug_ptr(s); + ret=ioctl_subdinfo(it->fd,s); debug_int(ret); @@ -146,7 +148,7 @@ static int do_test_for_cmd(comedi_t *dev,unsigned int subdevice) memset(&it,0,sizeof(it)); - it.subdev = 0; + it.subdev = subdevice; it.start_src = TRIG_ANY; it.scan_begin_src = TRIG_ANY; it.convert_src = TRIG_ANY; -- 2.26.2