projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f9ebf
)
me4000: Correct previous change to INSN_CONFIG.
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 9 Jan 2012 15:30:25 +0000
(15:30 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Mon, 9 Jan 2012 15:30:25 +0000
(15:30 +0000)
I messed up the previous change to me4000.c on 2011-12-15 which meant
that INSN_CONFIG_DIO_INPUT behaved like INSN_CONFIG_DIO_OUTPUT and vice
versa! Fix it.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/me4000.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/me4000.c
b/comedi/drivers/me4000.c
index eb45b483c994b89eaf97c06107bdc080ac4fd01f..8044f614e4a955564d7ed6e307267600eb27270d 100644
(file)
--- a/
comedi/drivers/me4000.c
+++ b/
comedi/drivers/me4000.c
@@
-2072,7
+2072,7
@@
static int me4000_dio_insn_config(comedi_device * dev,
tmp = me4000_inl(dev, info->dio_context.ctrl_reg);
- if (data[0] == INSN_CONFIG_DIO_
IN
PUT) {
+ if (data[0] == INSN_CONFIG_DIO_
OUT
PUT) {
if (chan < 8) {
s->io_bits |= 0xFF;
tmp &= ~(ME4000_DIO_CTRL_BIT_MODE_0 |