diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-17 09:37:21 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-17 09:37:21 +0200 |
commit | 5bc2b34e482fe8c4b0cab8f9748bd97dc3e17291 (patch) | |
tree | 81393c734bd8296569dc7734f00b0328e302c7a1 /src/modules | |
parent | 17a1c986c2fa7c49197d14c1b1ef0fc494d9e22f (diff) | |
download | px4-firmware-5bc2b34e482fe8c4b0cab8f9748bd97dc3e17291.tar.gz px4-firmware-5bc2b34e482fe8c4b0cab8f9748bd97dc3e17291.tar.bz2 px4-firmware-5bc2b34e482fe8c4b0cab8f9748bd97dc3e17291.zip |
Reset performance counters on arming to allow better resolution during flight
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index e13593077..1282bc0ea 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -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; } |