From 2ea7b17386003fe8586d12ca539a7ae237827394 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Thu, 1 Dec 2016 10:26:15 +0100 Subject: [PATCH] fixed handling of trigger distribution through fanout when the fanout is the feeder implementation --- include/FanOut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/FanOut.h b/include/FanOut.h index 189b3ed5..75df2b9b 100644 --- a/include/FanOut.h +++ b/include/FanOut.h @@ -200,11 +200,11 @@ namespace ChimeraTK { void write() { for(auto &slave : slaves) { // send out copies to slaves - slave->accessChannel(0) = mtca4u::NDRegisterAccessor<UserType>::buffer_2D[0]; // do not send copy if no data is expected (e.g. trigger) if(slave->getNumberOfSamples() != 0) { - slave->write(); + slave->accessChannel(0) = mtca4u::NDRegisterAccessor<UserType>::buffer_2D[0]; } + slave->write(); } impl->accessChannel(0).swap(mtca4u::NDRegisterAccessor<UserType>::buffer_2D[0]); impl->write(); -- GitLab