diff --git a/plugins/serial2002/serial2002.c b/plugins/serial2002/serial2002.c index dbc902c17dbc8dd3ec8ec510313073542830f40b..59fe2abe8a5104a8102d4bc73f98baee649cb836 100644 --- a/plugins/serial2002/serial2002.c +++ b/plugins/serial2002/serial2002.c @@ -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; }