Refactored unions

This commit is contained in:
Pavel Kirienko
2015-07-11 11:35:26 +03:00
parent 903d88b8d1
commit e6aeb036e8
4 changed files with 49 additions and 95 deletions
@@ -110,14 +110,14 @@ class UAVCAN_EXPORT ParamServer
}
// Assign if needed, read back
if (!in.value.is<protocol::param::Empty>())
if (!in.value.is(protocol::param::Value::Tag::empty))
{
manager_->assignParamValue(out.name, in.value);
}
manager_->readParamValue(out.name, out.value);
// Check if the value is OK, otherwise reset the name to indicate that we have no idea what is it all about
if (!out.value.is<protocol::param::Empty>())
if (!out.value.is(protocol::param::Value::Tag::empty))
{
manager_->readParamDefaultMaxMin(out.name, out.default_value, out.max_value, out.min_value);
}