diff --git a/LCS/WinCCWrapper/src/WinCCManager.cc b/LCS/WinCCWrapper/src/WinCCManager.cc index 6346ba1e28c9a4988823a4449f165bfbd9edbc05..a1c9432a471fd8b5c0198745c8bd6f973069a6ea 100644 --- a/LCS/WinCCWrapper/src/WinCCManager.cc +++ b/LCS/WinCCWrapper/src/WinCCManager.cc @@ -626,7 +626,7 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity return false; } - // check that the VariableType of the datapoint identifier matches the VariableType of value given. + // check that the VariableType of the datapoint identifier matches the VariableType of the value given. // if not, convert value to the appropriate datapoint type if (value->isA() != dpId_VariableType){ @@ -634,7 +634,8 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity // TODO: Fix this... VariablePtr converted_var = NULL; - Variable::ConvertResult cr = convert(value, value->getValue(), converted_var); + //Variable::ConvertResult cr = convert(value, value->getValue(), converted_var); + Variable::ConvertResult cr = value->convert(dpId_VariableType, converted_var); // if conversion succeeds, send the converted var if(Variable::ConvertResult::OK == cr) {