added switch to enable/disable bsread sender

This commit is contained in:
2026-02-06 12:10:59 +01:00
parent a58015b278
commit 8f23cc8110

View File

@@ -71,6 +71,10 @@ def accumulate(accumulator_addr, bsread_host, bsread_port, bsread_window):
if not sender:
continue
enable_bsread = results.get("enable_bsread", False)
if not enable_bsread:
continue
timestamp = tuple(results["timestamp"])
data = pack_bsread_data(results, detector, skip=ENTRIES_TO_SKIP)
sorter.add(pulse_id, (timestamp, data))