From: David Schleef Date: Tue, 5 Sep 2000 02:12:15 +0000 (+0000) Subject: hack bugfix for commands X-Git-Tag: r0_7_48~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2c513f0be10f1a11f3b6b6763cf7d3df3ed9231;p=comedi.git hack bugfix for commands --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 2e9b5d7c..d1f8cd9e 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -797,6 +797,8 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s) /* load SC (Scan Count) */ win_out(AI_SC_Load,AI_Command_1_Register); +s->cur_trig.n=1; /* XXX */ + break; case TRIG_NONE: /* stage number of scans */ @@ -810,6 +812,8 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s) /* load SC (Scan Count) */ win_out(AI_SC_Load,AI_Command_1_Register); +s->cur_trig.n=0; /* XXX */ + break; }