From: Frank Mori Hess Date: Thu, 22 Nov 2001 15:57:47 +0000 (+0000) Subject: fixed bug in pacing when both convert_src and scan_begin_src are TRIG_TIMER X-Git-Tag: r0_7_62~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4437578ea34639a35914714b253b64da9a3ae0a;p=comedi.git fixed bug in pacing when both convert_src and scan_begin_src are TRIG_TIMER --- diff --git a/comedi/drivers/ni_labpc.c b/comedi/drivers/ni_labpc.c index b72de188..cda8ec96 100644 --- a/comedi/drivers/ni_labpc.c +++ b/comedi/drivers/ni_labpc.c @@ -1684,7 +1684,7 @@ static void labpc_adc_timing(comedi_device *dev, comedi_cmd *cmd) if(cmd->convert_src == TRIG_TIMER && cmd->scan_begin_src == TRIG_TIMER) { // pick the lowest b0 divisor value we can (for maximum input clock speed on convert and scan counters) - devpriv->divisor_b0 = (cmd->convert_arg - 1) / (LABPC_TIMER_BASE * max_counter_value) + 1; + devpriv->divisor_b0 = (cmd->scan_begin_arg - 1) / (LABPC_TIMER_BASE * max_counter_value) + 1; if(devpriv->divisor_b0 < min_counter_value) devpriv->divisor_b0 = min_counter_value; if(devpriv->divisor_b0 > max_counter_value)