mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
parameters: param_value_is_default() add note about params_changed bitset usage
This commit is contained in:
parent
a991e78e18
commit
7d78cf8505
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user