From 398d3ead62a15a57ca45ff6b984295e201e889e6 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 8 Jul 2001 22:41:22 +0000 Subject: [PATCH] made digital output readable --- comedi/drivers/das16m1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/das16m1.c b/comedi/drivers/das16m1.c index 36871fe8..6c376916 100644 --- a/comedi/drivers/das16m1.c +++ b/comedi/drivers/das16m1.c @@ -246,7 +246,7 @@ static int das16m1_cmd_test(comedi_device *dev,comedi_subdevice *s, comedi_cmd * err++; } } - // check chanlist agains board's peculiarities + // check chanlist against board's peculiarities if(cmd->chanlist_len > 1) { for(i = 0; i < cmd->chanlist_len; i++) @@ -607,7 +607,7 @@ static int das16m1_attach(comedi_device *dev, comedi_devconfig *it) s = dev->subdevices + 2; /* 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; -- 2.26.2