Skip to content
Snippets Groups Projects
Commit 66bd5762 authored by ziemke's avatar ziemke
Browse files

Task #2926: Changed back to older conversion metod for more debugging

parent b6f9b20a
No related branches found
No related tags found
No related merge requests found
...@@ -626,7 +626,7 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity ...@@ -626,7 +626,7 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity
return false; 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 not, convert value to the appropriate datapoint type
if (value->isA() != dpId_VariableType){ if (value->isA() != dpId_VariableType){
...@@ -634,7 +634,8 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity ...@@ -634,7 +634,8 @@ bool WinCCManager::set_datapoint_validity(const std::string &name, bool validity
// TODO: Fix this... // TODO: Fix this...
VariablePtr converted_var = NULL; 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 conversion succeeds, send the converted var
if(Variable::ConvertResult::OK == cr) { if(Variable::ConvertResult::OK == cr) {
......
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