Fixed error codes

This commit is contained in:
Pavel Kirienko
2015-05-10 20:05:40 +03:00
parent a309c6d8da
commit b7a4c9524e
2 changed files with 2 additions and 2 deletions
@@ -248,7 +248,7 @@ public:
if ((value == 0) || (value > MaxClusterSize))
{
UAVCAN_TRACE("dynamic_node_id_server::distributed::ClusterManager", "Cluster size is invalid");
return -ErrFailure;
return -ErrInvalidConfiguration;
}
cluster_size_ = static_cast<uint8_t>(value);
}
@@ -139,7 +139,7 @@ public:
}
if (stored_voted_for > NodeID::Max)
{
return -ErrFailure;
return -ErrInvalidConfiguration;
}
voted_for_ = NodeID(uint8_t(stored_voted_for));
}