Commit ede6ee65 authored by Federico Vaga's avatar Federico Vaga

lib: bugfix timeout buffer fill

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 5e7ab5ee
...@@ -179,7 +179,7 @@ int adc_zio_fill_buffer(struct adc_dev *dev, ...@@ -179,7 +179,7 @@ int adc_zio_fill_buffer(struct adc_dev *dev,
if (!to) if (!to)
to_ms = -1; to_ms = -1;
else else
to_ms = to->tv_sec / 1000 + (to->tv_usec + 500) / 1000; to_ms = to->tv_sec * 1000 + (to->tv_usec + 500) / 1000;
ret = poll(&p, 1, to_ms); ret = poll(&p, 1, to_ms);
switch (ret) { switch (ret) {
case 0: case 0:
......
Markdown is supported
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