Skip to content

Commit

Permalink
parameters: update perf counter for flash-based param_save_default()
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Oct 11, 2019
1 parent a545f7e commit 93a1243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/parameters/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 93a1243

Please sign in to comment.