Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattias Fält
moberg
Commits
ba77f396
Commit
ba77f396
authored
Apr 11, 2019
by
Anders Blomdell
Browse files
Ignore comedi_dio_config ENOENT errors
parent
b9631c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/comedi/comedi.c
View file @
ba77f396
...
...
@@ -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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment