mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:13:34 +08:00
protocol.param.GetSet update - min/max only for numeric types, longer string value
This commit is contained in:
@@ -32,14 +32,14 @@ void ParamServer::handleGetSet(const protocol::param::GetSet::Request& in, proto
|
||||
}
|
||||
|
||||
// Assign if needed, read back
|
||||
if (!IParamManager::isParamValueEmpty(in.value))
|
||||
if (!IParamManager::isValueEmpty(in.value))
|
||||
{
|
||||
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 (!IParamManager::isParamValueEmpty(out.value))
|
||||
if (!IParamManager::isValueEmpty(out.value))
|
||||
{
|
||||
manager_->readParamDefaultMaxMin(out.name, out.default_value, out.max_value, out.min_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user