fixed count of number of conversion completed using pio
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:06:00 +0000 (01:06 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:06:00 +0000 (01:06 +0000)
comedi/drivers/cb_pcidas64.c

index 773cdc45bfeaab2b4262c32de38d51e03e449b2e..d290b0a08dcdf2966016cf8cb9c672d688105f0d 100644 (file)
@@ -1696,6 +1696,7 @@ static void pio_drain_ai_fifo_32(comedi_device *dev)
                }
                read_code = readw(private(dev)->main_iobase + ADC_READ_PNTR_REG) & 0x7fff;
        }
+       private(dev)->ai_count -= i;
 }
 
 // empty fifo