wake on end of scan based on TRIG_WAKE_EOS bit in command flags, instead
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Mar 2004 17:11:16 +0000 (17:11 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Mar 2004 17:11:16 +0000 (17:11 +0000)
of COMEDI_CB_EOS in callback mask

comedi/drivers/ni_mio_common.c

index 1ab6244c68a35e462661da8ee3565fe94b30de04..8c38e2e7dd3a6633ae7a91b522a4b8b4eb97fbea 100644 (file)
@@ -1730,7 +1730,7 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s)
                interrupt_a_enable|=AI_FIFO_Interrupt_Enable;
 #endif
 
-               if(s->async->cb_mask&COMEDI_CB_EOS){
+               if(cmd->flags & TRIG_WAKE_EOS){
                        /* wake on end-of-scan */
                        devpriv->aimode=AIMODE_SCAN;
                }else{