Commit a437efd2 authored by Alessio Netti's avatar Alessio Netti

Fixed a template instantiation bug in Configurator Template

- Prevented instantiating sensors from templates within template groups
parent 1a5e05a7
......@@ -382,7 +382,7 @@ class ConfiguratorTemplate : public ConfiguratorInterface {
LOG(debug) << " " << _baseName << " " << val.second.data();
}
SB_Ptr sensor = std::make_shared<SBase>(val.second.data());
if (readSensorBase(*sensor, val.second, isTemplate)) {
if (readSensorBase(*sensor, val.second, false)) {
sGroup.pushBackSensor(sensor);
} else if (!isTemplate) {
LOG(warning) << _baseName << " " << sGroup.getGroupName() << "::"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment