mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
parameters: param_value_is_default() add note about params_changed bitset usage
This commit is contained in:
@@ -570,6 +570,8 @@ param_get_default_value(param_t param, void *default_val)
|
||||
|
||||
bool param_value_is_default(param_t param)
|
||||
{
|
||||
// the param_values dynamic array might carry things that have been set
|
||||
// back to default, so we don't rely on the params_changed bitset here
|
||||
if (handle_in_range(param)) {
|
||||
switch (param_type(param)) {
|
||||
case PARAM_TYPE_INT32: {
|
||||
|
||||
Reference in New Issue
Block a user