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
b6ac7cba
Commit
b6ac7cba
authored
Apr 22, 2021
by
Anders Blomdell
Browse files
Add missing flush flags
parent
d29b2b1b
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/serial2002/serial2002.c
View file @
b6ac7cba
...
...
@@ -242,7 +242,7 @@ static struct moberg_status analog_in_read(
result
=
batch_sampling
(
device
,
&
map
,
NULL
,
NULL
,
&
data
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
}
else
{
result
=
serial2002_poll_channel
(
&
device
->
port
.
io
,
map
.
index
,
0
);
result
=
serial2002_poll_channel
(
&
device
->
port
.
io
,
map
.
index
,
1
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
result
=
serial2002_read
(
&
device
->
port
.
io
,
device
->
port
.
timeout
,
&
data
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
...
...
@@ -351,7 +351,7 @@ static struct moberg_status encoder_in_read(
result
=
batch_sampling
(
device
,
NULL
,
NULL
,
&
map
,
&
data
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
}
else
{
result
=
serial2002_poll_channel
(
&
device
->
port
.
io
,
map
.
index
,
0
);
result
=
serial2002_poll_channel
(
&
device
->
port
.
io
,
map
.
index
,
1
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
result
=
serial2002_read
(
&
device
->
port
.
io
,
device
->
port
.
timeout
,
&
data
);
if
(
!
OK
(
result
))
{
goto
return_result
;
}
...
...
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