From 14942c55ba0e923fd154bb3e0f3fd553e36bb133 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 23 Nov 2007 15:05:16 +0000 Subject: [PATCH] Increased maximum length of channel list for AI command to 256 to allow a repeated subsequence of channels to be used with a reasonable number of repeats. Can't make the maximum length too long or the generation of N pulses using a monostable as a gate would generate too many pulses in some circumstances. --- comedi/drivers/amplc_pci230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index 1705167c..c0f63019 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -639,7 +639,7 @@ static int pci230_attach(comedi_device * dev, comedi_devconfig * it) s->maxdata = (1 << thisboard->ai_bits) - 1; s->range_table = &pci230_ai_range; s->insn_read = &pci230_ai_rinsn; - s->len_chanlist = thisboard->ai_chans; + s->len_chanlist = 256; /* but there are restrictions. */ /* Only register commands if the interrupt handler is installed. */ if (irq_hdl == 0) { dev->read_subdev = s; -- 2.26.2