From: Frank Mori Hess Date: Tue, 10 Jul 2001 21:59:21 +0000 (+0000) Subject: set sdf readable flag for digital output X-Git-Tag: r0_7_60~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22e6733b91ebe3d937faf0fcc7dd0f177c1fbdcc;p=comedi.git set sdf readable flag for digital output --- diff --git a/comedi/drivers/das16.c b/comedi/drivers/das16.c index 4f5d0a10..ab833cdd 100644 --- a/comedi/drivers/das16.c +++ b/comedi/drivers/das16.c @@ -1322,12 +1322,13 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it) s->subdev_flags = SDF_READABLE; if(devpriv->ai_singleended){ s->n_chan = 16; + s->len_chanlist = 16; s->subdev_flags |= SDF_GROUND; }else{ s->n_chan = 8; + s->len_chanlist = 8; s->subdev_flags |= SDF_DIFF; } - s->len_chanlist = 16; s->maxdata = (1 << thisboard->ai_nbits) - 1; if(devpriv->ai_unipolar){ s->range_table = das16_ai_uni_lranges[thisboard->ai_pg]; @@ -1372,7 +1373,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it) /* do */ if(thisboard->do_){ s->type = COMEDI_SUBD_DO; - s->subdev_flags = SDF_WRITEABLE; + s->subdev_flags = SDF_WRITEABLE | SDF_READABLE; s->n_chan = 4; s->maxdata = 1; s->range_table = &range_digital;