Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
66bd5762
Commit
66bd5762
authored
6 years ago
by
ziemke
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/WinCCWrapper/src/WinCCManager.cc
+3
-2
3 additions, 2 deletions
LCS/WinCCWrapper/src/WinCCManager.cc
with
3 additions
and
2 deletions
LCS/WinCCWrapper/src/WinCCManager.cc
+
3
−
2
View file @
66bd5762
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment