Reset performance counters on arming to allow better resolution during flight

This commit is contained in:
Lorenz Meier 2014-10-17 09:37:21 +02:00
parent 17a1c986c2
commit 5bc2b34e48
1 changed files with 3 additions and 0 deletions

View File

@ -628,6 +628,9 @@ void sdlog2_start_log()
perf_print_all(perf_fd);
close(perf_fd);
/* reset performance counters to get in-flight min and max values in post flight log */
perf_reset_all();
logging_enabled = true;
}