From 66bd5762fe48117efe43d3dd2ec7548e6c2fed0e Mon Sep 17 00:00:00 2001 From: ziemke <ziemke@astron.nl> Date: Thu, 28 Mar 2019 13:24:38 +0000 Subject: [PATCH] Task #2926: Changed back to older conversion metod for more debugging --- LCS/WinCCWrapper/src/WinCCManager.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LCS/WinCCWrapper/src/WinCCManager.cc b/LCS/WinCCWrapper/src/WinCCManager.cc index 6346ba1e28c..a1c9432a471 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) { -- GitLab