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

fix for latest version of DeviceAccess: the function replace() has to be used...

fix for latest version of DeviceAccess: the function replace() has to be used instead of the operator=() to re-assign a register accessor
parent bfe6d113
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,9 @@ namespace mtca4u {
if(reg.getNumberOfDimensions() == 0) {
ScalarRegisterAccessor<int> accessor = device.getScalarRegisterAccessor<int>(reg.getRegisterName());
boost::shared_ptr< ProcessScalar<int> > pv = impl->processVariableManager->createProcessScalar<int>(mtca4u::deviceToControlSystem, pvName);
impl->scalarIntMap[baseName] = std::make_pair(accessor,pv);
auto mypair = impl->scalarIntMap[baseName];
mypair.first.replace(accessor);
mypair.second = pv;
}
else if(reg.getNumberOfDimensions() == 1) {
throw std::string("not yet implemented.");
......
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