From 0b4166c863cb7bfdd32a23b0e68b51ec9d6d73c5 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 28 Jan 2006 15:33:30 +0000 Subject: [PATCH] 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. --- comedi/drivers/amplc_pci230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2