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

add missing TestableModeAccessorDecorator for push-type feeding device variables

parent 0b6ee663
No related branches found
No related tags found
No related merge requests found
......@@ -400,6 +400,14 @@ boost::shared_ptr<ChimeraTK::NDRegisterAccessor<UserType>> Application::createDe
accessor->setDataValidity(DataValidity::faulty);
}
// decorate push-type feeders with testable mode decorator, if needed
if(testableMode) {
if(mode == UpdateMode::push && direction.dir == VariableDirection::feeding) {
auto varId = getNextVariableId();
accessor = boost::make_shared<TestableModeAccessorDecorator<UserType>>(accessor, true, false, varId,varId);
}
}
return boost::make_shared<ExceptionHandlingDecorator<UserType>>(accessor, node);
}
......
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