From a5db9d8caf0c6a1aaf4a05753f8d05a6217285f4 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 6 Oct 2004 01:56:07 +0000 Subject: [PATCH] oops, convert counter really should be limited to 16 bits after all --- comedi/drivers/ni_mio_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; } } -- 2.26.2