From: Frank Mori Hess Date: Sun, 21 Mar 2004 17:11:16 +0000 (+0000) Subject: wake on end of scan based on TRIG_WAKE_EOS bit in command flags, instead X-Git-Tag: r0_7_69~79 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c0d1590f668766c73acf72eed049e880b61081f;p=comedi.git wake on end of scan based on TRIG_WAKE_EOS bit in command flags, instead of COMEDI_CB_EOS in callback mask --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 1ab6244c..8c38e2e7 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -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{