From ba77f3969e7638638349db512f79856d58f9c069 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Thu, 11 Apr 2019 14:56:03 +0200 Subject: [PATCH] Ignore comedi_dio_config ENOENT errors --- plugins/comedi/comedi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/comedi/comedi.c b/plugins/comedi/comedi.c index 8755b23..499e6cd 100644 --- a/plugins/comedi/comedi.c +++ b/plugins/comedi/comedi.c @@ -344,14 +344,14 @@ static struct moberg_status channel_open(struct moberg_channel *channel) if (0 > comedi_dio_config(channel->context->device->comedi.handle, channel->context->descriptor.subdevice, channel->context->descriptor.subchannel, - 0)) { + 0) && errno != ENOENT) { goto err_errno; } } else if (channel->kind == chan_DIGITALOUT) { if (0 > comedi_dio_config(channel->context->device->comedi.handle, channel->context->descriptor.subdevice, channel->context->descriptor.subchannel, - 1)) { + 1) && errno != ENOENT) { goto err_errno; } } -- GitLab