Commit d15296ae authored by nickolay.kovalev's avatar nickolay.kovalev
Browse files

bool fix

parent df160af0
......@@ -456,7 +456,7 @@ void parseWriteParameters(const char *input, int32_t *nmSpace, uint32_t *nodeId,
}
else if (type_string.compare("bool") == 0){
type = &UA_TYPES[UA_TYPES_BOOLEAN];
UA_Boolean bool_val = (type_string.compare("0") == 0) ? UA_FALSE : UA_TRUE;
UA_Boolean bool_val = (value_string.compare("0") == 0) ? UA_FALSE : UA_TRUE;
UA_Variant_setScalarCopy(val, &bool_val, type);
}
else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment