From b64db6656e5854a2ce94c0af3e9092eda3c5c9fe Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Thu, 5 Jul 2018 10:15:17 +0200
Subject: [PATCH] fixed readAny in BitMask module

---
 Modules/include/BitMask.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Modules/include/BitMask.h b/Modules/include/BitMask.h
index c28609a3..2a7c25db 100644
--- a/Modules/include/BitMask.h
+++ b/Modules/include/BitMask.h
@@ -32,6 +32,9 @@ namespace ChimeraTK {
       ScalarOutput<int32_t> bitmask{this, "bitmask", "", "Output bit mask."};
 
       void mainLoop() {
+
+        auto readGroup = input.readAnyGroup();
+
         while(true) {
 
           // create bit mask
@@ -44,7 +47,7 @@ namespace ChimeraTK {
           bitmask.write();
 
           // wait for new input values (at the end, since we want to process the initial values first)
-          input.readAny();
+          readGroup.readAny();
         }
       }
 
-- 
GitLab