From 6386822140363f1156b9ec559f10388f6bef3086 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 16 Jan 2008 17:03:48 +0000 Subject: [PATCH] Corrected number of channels for DO subdevice. --- comedi/drivers/ni_65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/ni_65xx.c b/comedi/drivers/ni_65xx.c index 227c323b..43353827 100644 --- a/comedi/drivers/ni_65xx.c +++ b/comedi/drivers/ni_65xx.c @@ -671,7 +671,7 @@ static int ni_65xx_attach(comedi_device * dev, comedi_devconfig * it) s->type = COMEDI_SUBD_DO; s->subdev_flags = SDF_READABLE | SDF_WRITABLE; s->n_chan = - board(dev)->num_di_ports * ni_65xx_channels_per_port; + board(dev)->num_do_ports * ni_65xx_channels_per_port; s->range_table = &range_digital; s->maxdata = 1; s->insn_bits = ni_65xx_dio_insn_bits; -- 2.26.2