From: Frank Mori Hess Date: Sat, 28 Jan 2006 15:33:30 +0000 (+0000) Subject: Patch from abbotti@mev.co.uk (Ian Abbott): X-Git-Tag: r0_7_71~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b4166c863cb7bfdd32a23b0e68b51ec9d6d73c5;p=comedi.git Patch from abbotti@mev.co.uk (Ian Abbott): The amplc_pci230 code for handling the AI instruction has an inverted test for the state of the ADC "busy" bit in its timeout loop. The attached patch corrects the test. --- diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index e6dc47f5..def3bd4d 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -559,7 +559,7 @@ static int pci230_ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *i /* wait for conversion to end */ for(i=0;iiobase + PCI230_ADCCON); - if(PCI230_TEST_BIT(status, PCI230_ADC_BUSY_BIT))break; + if(!PCI230_TEST_BIT(status, PCI230_ADC_BUSY_BIT)) break; } if(i==TIMEOUT){ /* rt_printk() should be used instead of printk()