From 485e4d546df24106b87b2683192da01a37af6936 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 10 May 2001 17:47:59 +0000 Subject: [PATCH] fixed dereferencing of chanlist, hopefully this will also fix the occasional segfaults --- comedi/drivers/comedi_rt_timer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/comedi/drivers/comedi_rt_timer.c b/comedi/drivers/comedi_rt_timer.c index 63ef5b55..bfdfec1c 100644 --- a/comedi/drivers/comedi_rt_timer.c +++ b/comedi/drivers/comedi_rt_timer.c @@ -130,9 +130,9 @@ static void timer_ai_task_func(int d) for(n=0;nstop_arg;n++){ for(i=0;iscan_end_arg;i++){ ret = comedi_data_read(devpriv->device,devpriv->subd, - CR_CHAN(devpriv->chanlist[i]), - CR_RANGE(devpriv->chanlist[i]), - CR_AREF(devpriv->chanlist[i]), + CR_CHAN(cmd->chanlist[i]), + CR_RANGE(cmd->chanlist[i]), + CR_AREF(cmd->chanlist[i]), &data); if(ret<0){ /* eek! */ @@ -184,9 +184,9 @@ static void timer_ao_task_func(int d) /* eek! */ } ret = comedi_data_write(devpriv->device,devpriv->subd, - CR_CHAN(devpriv->chanlist[i]), - CR_RANGE(devpriv->chanlist[i]), - CR_AREF(devpriv->chanlist[i]), + CR_CHAN(cmd->chanlist[i]), + CR_RANGE(cmd->chanlist[i]), + CR_AREF(cmd->chanlist[i]), data); if(ret<0){ /* eek! */ -- 2.26.2