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

Add missing flush flags

parent d29b2b1b
No related branches found
No related tags found
No related merge requests found
......@@ -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; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment