Commit 7dbc1e7f authored by Vincent Michel's avatar Vincent Michel

Fix FalconX poll_data hack

parent cf9b205a
Pipeline #1310 passed with stages
in 1 minute and 21 seconds
......@@ -372,9 +372,14 @@ def synchronized_poll_data(done=set()):
# Overrun from hardware
if any_buffer_overrun():
raise overrun_error
# Hack: use the done argument
done &= full
full -= done
# FalconX hack
# The buffer_done command does not reset the full flag.
# It's only reset when the buffer starts being filled up again.
# For this reason, we need to remember full flags from the previous call.
# This is exactly what the done set does.
done &= full # Reset done flags
full -= done # Don't read twice
done |= full # Set done flags
# Read data from buffers
for x in full:
data[x] = get_all_buffer_data(x)
......
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