From f4437578ea34639a35914714b253b64da9a3ae0a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 22 Nov 2001 15:57:47 +0000 Subject: [PATCH] fixed bug in pacing when both convert_src and scan_begin_src are TRIG_TIMER --- comedi/drivers/ni_labpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2