Commit 3ea306ed authored by Matias Guijarro's avatar Matias Guijarro

Merge branch 'musst_acquisition_fix' into 'master'

musst: walk around on bad value returned by the EPTR

See merge request !995
parents 2e12ab76 1b2337a9
Pipeline #6951 passed with stages
in 19 minutes and 37 seconds
......@@ -461,7 +461,15 @@ class musst(object):
buffer_size, nb_buffer = self.get_event_buffer_size()
buffer_memory = buffer_size * nb_buffer
current_offset, current_buffer_id = self.get_event_memory_pointer()
for i in range(10):
curr_state = self.STATE
current_offset, current_buffer_id = self.get_event_memory_pointer()
if current_buffer_id == 0 and current_offset != 64:
break
if curr_state != self.RUN_STATE:
break
gevent.sleep(100e-3) # wait a little bit before re-asking
current_offset = current_buffer_id * buffer_size + current_offset
from_offset = (from_event_id * nb_counters) % buffer_memory
......
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