mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
systemcmds/param: set-default should mark parameter active to avoid race conditions
This commit is contained in:
@@ -885,7 +885,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found)
|
||||
static int
|
||||
do_set_custom_default(const char *name, const char *val, bool silent_fail)
|
||||
{
|
||||
param_t param = param_find_no_notification(name);
|
||||
param_t param = param_find(name);
|
||||
|
||||
/* set nothing if parameter cannot be found */
|
||||
if (param == PARAM_INVALID && !silent_fail) {
|
||||
|
||||
Reference in New Issue
Block a user