Corrected number of channels for DO subdevice.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 16 Jan 2008 17:03:48 +0000 (17:03 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 16 Jan 2008 17:03:48 +0000 (17:03 +0000)
comedi/drivers/ni_65xx.c

index 227c323b71d0af2b95c95a6ff4766fa4e165e369..433538274c373fb80143f8457c894bec79830162 100644 (file)
@@ -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;