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

fix not reading initial values of VariableGroups

parent 88665a30
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,8 @@ namespace ChimeraTK { ...@@ -88,7 +88,8 @@ namespace ChimeraTK {
// Read all variables once to obtain the initial values from the devices and from the control system persistency // Read all variables once to obtain the initial values from the devices and from the control system persistency
// layer. This is done in two steps, first for all poll-type variables and then for all push-types, because // layer. This is done in two steps, first for all poll-type variables and then for all push-types, because
// poll-type reads might trigger distribution of values to push-type variables via a ConsumingFanOut. // poll-type reads might trigger distribution of values to push-type variables via a ConsumingFanOut.
for(auto& variable : getAccessorList()) { for(auto& variable : getAccessorListRecursive()) {
if(variable.getDirection().dir == VariableDirection::feeding) continue;
if(variable.getMode() == UpdateMode::poll) { if(variable.getMode() == UpdateMode::poll) {
auto hasInitialValue = variable.hasInitialValue(); auto hasInitialValue = variable.hasInitialValue();
if(hasInitialValue != VariableNetworkNode::InitialValueMode::None) { if(hasInitialValue != VariableNetworkNode::InitialValueMode::None) {
...@@ -96,7 +97,8 @@ namespace ChimeraTK { ...@@ -96,7 +97,8 @@ namespace ChimeraTK {
} }
} }
} }
for(auto& variable : getAccessorList()) { for(auto& variable : getAccessorListRecursive()) {
if(variable.getDirection().dir == VariableDirection::feeding) continue;
if(variable.getMode() == UpdateMode::push) { if(variable.getMode() == UpdateMode::push) {
auto hasInitialValue = variable.hasInitialValue(); auto hasInitialValue = variable.hasInitialValue();
if(hasInitialValue == VariableNetworkNode::InitialValueMode::Poll) { if(hasInitialValue == VariableNetworkNode::InitialValueMode::Poll) {
......
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