From: Frank Mori Hess Date: Wed, 6 Oct 2004 01:56:07 +0000 (+0000) Subject: oops, convert counter really should be limited to 16 bits after all X-Git-Tag: r0_7_70~100 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5db9d8caf0c6a1aaf4a05753f8d05a6217285f4;p=comedi.git oops, convert counter really should be limited to 16 bits after all --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 95762c3c..4757b430 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -1453,8 +1453,8 @@ static int ni_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd *cmd) cmd->convert_arg=boardtype.ai_speed; err++; } - if(cmd->convert_arg>TIMER_BASE*0xffffff){ - cmd->convert_arg=TIMER_BASE*0xffffff; + if(cmd->convert_arg>TIMER_BASE*0xffff){ + cmd->convert_arg=TIMER_BASE*0xffff; err++; } }