aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-01-09 09:08:21 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-01-11 11:03:56 +0100
commit6203c73ccc1426b4280fb23284a2f52e4425ef4d (patch)
treeb3f2eb92343c07935ba30aff0ce5d50ca84d7a26 /src/modules/systemlib
parent7d56ae4ed65f67cfe159a436eb58da59e9e0b0f6 (diff)
downloadpx4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.tar.gz
px4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.tar.bz2
px4-firmware-6203c73ccc1426b4280fb23284a2f52e4425ef4d.zip
Perf counter fixes
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/perf_counter.c5
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: {