Skip to content
Snippets Groups Projects
Commit e5e86625 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix comedi route setup

parent 740e9557
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment