Commit b6ac7cba authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Add missing flush flags

parent d29b2b1b
...@@ -242,7 +242,7 @@ static struct moberg_status analog_in_read( ...@@ -242,7 +242,7 @@ static struct moberg_status analog_in_read(
result = batch_sampling(device, &map, NULL, NULL, &data); result = batch_sampling(device, &map, NULL, NULL, &data);
if (! OK(result)) { goto return_result; } if (! OK(result)) { goto return_result; }
} else { } 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; } if (! OK(result)) { goto return_result; }
result = serial2002_read(&device->port.io, device->port.timeout, &data); result = serial2002_read(&device->port.io, device->port.timeout, &data);
if (! OK(result)) { goto return_result; } if (! OK(result)) { goto return_result; }
...@@ -351,7 +351,7 @@ static struct moberg_status encoder_in_read( ...@@ -351,7 +351,7 @@ static struct moberg_status encoder_in_read(
result = batch_sampling(device, NULL, NULL, &map, &data); result = batch_sampling(device, NULL, NULL, &map, &data);
if (! OK(result)) { goto return_result; } if (! OK(result)) { goto return_result; }
} else { } 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; } if (! OK(result)) { goto return_result; }
result = serial2002_read(&device->port.io, device->port.timeout, &data); result = serial2002_read(&device->port.io, device->port.timeout, &data);
if (! OK(result)) { goto return_result; } if (! OK(result)) { goto return_result; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment