projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3023347
)
Patch from abbotti@mev.co.uk (Ian Abbott):
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 28 Jan 2006 15:33:30 +0000
(15:33 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 28 Jan 2006 15:33:30 +0000
(15:33 +0000)
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
patch
|
blob
|
history
diff --git
a/comedi/drivers/amplc_pci230.c
b/comedi/drivers/amplc_pci230.c
index e6dc47f535f7994f364fe1607abd063bcdfcd7b8..def3bd4d0f57373c1935804a3f5f804fc8e32ecd 100644
(file)
--- 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;i<TIMEOUT;i++){
status = inw(dev->iobase + 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()