pcl818: bug fixes: For AI commands, the scan counter was being updated
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jan 2010 16:46:11 +0000 (16:46 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jan 2010 16:46:11 +0000 (16:46 +0000)
commitff268e4656d5890152c8c8132b06877c624916bd
treea1085b796e0df4899eb1e33b4de84ca3390d9ebd
parent9679e9e113c547dd1fc7e037f0cee7bb14a3d325
pcl818: bug fixes: For AI commands, the scan counter was being updated
after every sample, except for DMA mode where is was being updated after
each repeated segment of the channel list.  Keep track of current sample
and update the scan counter at the end of each scan.  Also, AI commands
with multiple channels were being terminated with an error incorrectly in
non-DMA mode.  This was because the current position within a repeated
segment of the channel list was not being updated, causing it to think
there was a "channel dropout" when comparing the assumed current channel
with the channel number read from the FIFO.
comedi/drivers/pcl818.c