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
178ff3d9
Commit
178ff3d9
authored
Dec 03, 2019
by
Anders Blomdell
Browse files
Add ASYNC_LOW_LATENCY to serial flags
parent
36b9204d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/serial2002/serial2002.c
View file @
178ff3d9
...
...
@@ -321,6 +321,7 @@ static struct moberg_status device_open(struct moberg_device_context *device)
if
(
ioctl
(
fd
,
TCSETS2
,
&
termios2
)
<
0
)
{
goto
err_errno
;
}
struct
serial_struct
settings
;
if
(
ioctl
(
fd
,
TIOCGSERIAL
,
&
settings
)
>=
0
)
{
settings
.
flags
|=
ASYNC_LOW_LATENCY
;
/* It's expected for this to fail for at least some USB serial adapters */
ioctl
(
fd
,
TIOCSSERIAL
,
&
settings
);
}
...
...
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