mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 04:33:33 +08:00
Fixed error codes
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ public:
|
||||
}
|
||||
if (stored_voted_for > NodeID::Max)
|
||||
{
|
||||
return -ErrFailure;
|
||||
return -ErrInvalidConfiguration;
|
||||
}
|
||||
voted_for_ = NodeID(uint8_t(stored_voted_for));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user