Commit e5e86625 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix comedi route setup

parent 740e9557
......@@ -357,7 +357,7 @@ static struct moberg_status channel_open(struct moberg_channel *channel)
insn.n = sizeof(data) / sizeof(data[0]);
data[0] = INSN_CONFIG_SET_ROUTING;
data[1] = channel->context->descriptor.route;
if (comedi_do_insn(channel->context->device->comedi.handle, &insn)) {
if (0 > comedi_do_insn(channel->context->device->comedi.handle, &insn)) {
goto err_errno;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment