mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 03:40:34 +08:00
param command: use param_* calls even if flash-based params are enabled
This will ensure proper locking.
This commit is contained in:
@@ -342,11 +342,6 @@ int flash_param_save(void)
|
||||
}
|
||||
|
||||
|
||||
int flash_param_save_default(void)
|
||||
{
|
||||
return param_export_internal(false);
|
||||
}
|
||||
|
||||
|
||||
int flash_param_load(void)
|
||||
{
|
||||
@@ -356,5 +351,5 @@ int flash_param_load(void)
|
||||
|
||||
int flash_param_import(void)
|
||||
{
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -64,9 +64,8 @@ __EXPORT extern UT_array *param_values;
|
||||
__EXPORT int param_set_external(param_t param, const void *val, bool mark_saved, bool notify_changes, bool is_saved);
|
||||
__EXPORT const void *param_get_value_ptr_external(param_t param);
|
||||
|
||||
/* The interface hooks to the Flash based storage */
|
||||
/* The interface hooks to the Flash based storage. The caller is responsible for locking */
|
||||
__EXPORT int flash_param_save(void);
|
||||
__EXPORT int flash_param_save_default(void);
|
||||
__EXPORT int flash_param_load(void);
|
||||
__EXPORT int flash_param_import(void);
|
||||
__END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user