From 7c0d1590f668766c73acf72eed049e880b61081f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 21 Mar 2004 17:11:16 +0000 Subject: [PATCH] wake on end of scan based on TRIG_WAKE_EOS bit in command flags, instead of COMEDI_CB_EOS in callback mask --- comedi/drivers/ni_mio_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.26.2