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

Ignore comedi_dio_config ENOENT errors

parent b9631c5f
No related branches found
No related tags found
No related merge requests found
...@@ -344,14 +344,14 @@ static struct moberg_status channel_open(struct moberg_channel *channel) ...@@ -344,14 +344,14 @@ static struct moberg_status channel_open(struct moberg_channel *channel)
if (0 > comedi_dio_config(channel->context->device->comedi.handle, if (0 > comedi_dio_config(channel->context->device->comedi.handle,
channel->context->descriptor.subdevice, channel->context->descriptor.subdevice,
channel->context->descriptor.subchannel, channel->context->descriptor.subchannel,
0)) { 0) && errno != ENOENT) {
goto err_errno; goto err_errno;
} }
} else if (channel->kind == chan_DIGITALOUT) { } else if (channel->kind == chan_DIGITALOUT) {
if (0 > comedi_dio_config(channel->context->device->comedi.handle, if (0 > comedi_dio_config(channel->context->device->comedi.handle,
channel->context->descriptor.subdevice, channel->context->descriptor.subdevice,
channel->context->descriptor.subchannel, channel->context->descriptor.subchannel,
1)) { 1) && errno != ENOENT) {
goto err_errno; goto err_errno;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment