From: Ian Abbott Date: Mon, 9 Jan 2012 15:30:25 +0000 (+0000) Subject: me4000: Correct previous change to INSN_CONFIG. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9132598c22632ac643b5ab0e5bd295210e6724a8;p=comedi.git me4000: Correct previous change to INSN_CONFIG. 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 --- diff --git a/comedi/drivers/me4000.c b/comedi/drivers/me4000.c index eb45b483..8044f614 100644 --- 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_INPUT) { + if (data[0] == INSN_CONFIG_DIO_OUTPUT) { if (chan < 8) { s->io_bits |= 0xFF; tmp &= ~(ME4000_DIO_CTRL_BIT_MODE_0 |