mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
parameters: update perf counter for flash-based param_save_default()
This commit is contained in:
@@ -961,9 +961,11 @@ param_save_default()
|
||||
const char *filename = param_get_default_file();
|
||||
|
||||
if (!filename) {
|
||||
perf_begin(param_export_perf);
|
||||
param_lock_writer();
|
||||
res = flash_param_save(false);
|
||||
param_unlock_writer();
|
||||
perf_end(param_export_perf);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user