From c0aa96808c5ac62709dd5b3bedaba62c18cf5df3 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 24 Jan 2001 00:41:06 +0000 Subject: [PATCH] fix from Luke Stras --- comedi/drivers/das08-new.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/das08-new.c b/comedi/drivers/das08-new.c index 8bc3cedf..5d277f61 100644 --- a/comedi/drivers/das08-new.c +++ b/comedi/drivers/das08-new.c @@ -335,7 +335,7 @@ struct das08_private_struct{ }; #define devpriv ((struct das08_private_struct *)dev->private) -#define thisboard ((struct das08_board_struct *)dev->board) +#define thisboard (das08_boards+dev->board) #define TIMEOUT 1000 @@ -370,7 +370,7 @@ static int das08_ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *in outb_p(0,dev->iobase+DAS08_TRIG_12BIT); for(i=0;iiobase+DAS08_STATUS)&DAS08_EOC)) break; } if(i==TIMEOUT){ @@ -380,9 +380,9 @@ static int das08_ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *in msb = inb(dev->iobase + DAS08_MSB); lsb = inb(dev->iobase + DAS08_LSB); if(thisboard->ai_nbits==12){ - insn->data[n] = (lsb>>4) | (msb << 4); + data[n] = (lsb>>4) | (msb << 4); }else{ - insn->data[n] = lsb | (msb << 8); + data[n] = lsb | (msb << 8); } } -- 2.26.2