From: Ian Abbott Date: Fri, 23 Nov 2007 15:05:16 +0000 (+0000) Subject: Increased maximum length of channel list for AI command to 256 to allow X-Git-Tag: v0_7_76~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=14942c55ba0e923fd154bb3e0f3fd553e36bb133;p=comedi.git 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. --- 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;