mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 22:37:35 +08:00
param command: remove param_save_default() calls
Not needed anymore due to autosave
This commit is contained in:
@@ -566,15 +566,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int ret = param_save_default();
|
||||
|
||||
if (ret) {
|
||||
PX4_ERR("Param save failed (%i)", ret);
|
||||
return 1;
|
||||
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -662,13 +654,6 @@ do_reset(const char *excludes[], int num_excludes)
|
||||
param_reset_all();
|
||||
}
|
||||
|
||||
int ret = param_save_default();
|
||||
|
||||
if (ret) {
|
||||
PX4_ERR("Param save failed (%i)", ret);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -691,13 +676,5 @@ do_reset_nostart(const char *excludes[], int num_excludes)
|
||||
(void)param_set(param_find("SYS_AUTOSTART"), &autostart);
|
||||
(void)param_set(param_find("SYS_AUTOCONFIG"), &autoconfig);
|
||||
|
||||
int ret = param_save_default();
|
||||
|
||||
if (ret) {
|
||||
PX4_ERR("Param save failed (%i)", ret);
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user