fix for stop_src == TRIG_NONE
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 14 Dec 2001 19:15:31 +0000 (19:15 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 14 Dec 2001 19:15:31 +0000 (19:15 +0000)
comedi/drivers/das16.c

index 86482f7e94bf6831a189829e3ea06665784d2213..28d2df607f5b1af36ea6a950f348523a3a33d1e6 100644 (file)
@@ -1141,7 +1141,8 @@ static void das16_interrupt(int irq, void *d, struct pt_regs *regs)
 
        async->events |= COMEDI_CB_BLOCK;
 
-       if(devpriv->adc_count == 0)
+       if(async->cmd.stop_src == TRIG_COUNT &&
+               devpriv->adc_count == 0)
        {       /* end of acquisition */
                das16_cancel(dev, s);
                async->events |= COMEDI_CB_EOA;