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

Add ASYNC_LOW_LATENCY to serial flags

parent 36b9204d
No related branches found
No related tags found
No related merge requests found
...@@ -321,6 +321,7 @@ static struct moberg_status device_open(struct moberg_device_context *device) ...@@ -321,6 +321,7 @@ static struct moberg_status device_open(struct moberg_device_context *device)
if (ioctl(fd, TCSETS2, &termios2) < 0) { goto err_errno; } if (ioctl(fd, TCSETS2, &termios2) < 0) { goto err_errno; }
struct serial_struct settings; struct serial_struct settings;
if (ioctl(fd, TIOCGSERIAL, &settings) >= 0) { 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 */ /* It's expected for this to fail for at least some USB serial adapters */
ioctl(fd, TIOCSSERIAL, &settings); ioctl(fd, TIOCSSERIAL, &settings);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment