param command: remove param_save_default() calls

Not needed anymore due to autosave
This commit is contained in:
Beat Küng
2017-03-24 17:02:30 +01:00
committed by Lorenz Meier
parent dffba3e03b
commit f256d03364
+1 -24
View File
@@ -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;
}