pcl812: Don't need to set cur_chan twice at end of scan.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:04:26 +0000 (12:04 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:04:26 +0000 (12:04 +0000)
comedi/drivers/pcl812.c

index bd0c2ff4879c593c57c84feabe4a862c948698a3..cae13478552bfa90b741b5ae0f8465ee18275df8 100644 (file)
@@ -967,7 +967,6 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d)
 
        s->async->cur_chan = next_chan;
        if (next_chan == 0) {   /* one scan done */
-               s->async->cur_chan = 0;
                devpriv->ai_act_scan++;
                if (!(devpriv->ai_neverending))
                        if (devpriv->ai_act_scan >= devpriv->ai_scans) {        /* all data sampled */