diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-09 09:08:21 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-11 11:03:56 +0100 |
commit | 6203c73ccc1426b4280fb23284a2f52e4425ef4d (patch) | |
tree | b3f2eb92343c07935ba30aff0ce5d50ca84d7a26 /src/modules | |
parent | 7d56ae4ed65f67cfe159a436eb58da59e9e0b0f6 (diff) | |
download | px4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.tar.gz px4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.tar.bz2 px4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.zip |
Perf counter fixes
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/systemlib/perf_counter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/systemlib/perf_counter.c b/src/modules/systemlib/perf_counter.c index 4d62db0ee..950577f00 100644 --- a/src/modules/systemlib/perf_counter.c +++ b/src/modules/systemlib/perf_counter.c @@ -272,11 +272,14 @@ perf_end(perf_counter_t handle) } } +#include <systemlib/err.h> + void perf_set(perf_counter_t handle, int64_t elapsed) { - if (handle == NULL) + if (handle == NULL) { return; + } switch (handle->type) { case PC_ELAPSED: { |