param command: use param_* calls even if flash-based params are enabled

This will ensure proper locking.
This commit is contained in:
Beat Küng
2017-02-16 17:40:16 +01:00
committed by Lorenz Meier
parent 68bee1b847
commit 42967df63f
4 changed files with 29 additions and 27 deletions
@@ -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