Skip to content
Snippets Groups Projects
Commit 2ea7b173 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fixed handling of trigger distribution through fanout when the fanout is the feeder implementation

parent 5b29b09c
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment