From 28a844f6c5569cef3e6b2fb77bef13906d8d30f6 Mon Sep 17 00:00:00 2001 From: Bernd Porr Date: Wed, 6 Dec 2006 23:57:23 +0000 Subject: [PATCH] The flag SDF_CMD_READ was missing which gave the error number "-1" during async reads. --- comedi/drivers/usbduxfast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/usbduxfast.c b/comedi/drivers/usbduxfast.c index f6965cd5..347ead59 100644 --- a/comedi/drivers/usbduxfast.c +++ b/comedi/drivers/usbduxfast.c @@ -1742,8 +1742,8 @@ static int usbduxfast_attach(comedi_device * dev, comedi_devconfig * it) // analog input s->type=COMEDI_SUBD_AI; // readable and ref is to ground - s->subdev_flags=SDF_READABLE|SDF_GROUND; - // 8 channels + s->subdev_flags=SDF_READABLE|SDF_GROUND|SDF_CMD_READ; + // 16 channels s->n_chan=16; // length of the channellist s->len_chanlist=16; -- 2.26.2