aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/drivers/hmc5883/hmc5883.cpp1
-rw-r--r--apps/px4/tests/test_hrt.c1
-rw-r--r--apps/px4/tests/test_uart_send.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/apps/drivers/hmc5883/hmc5883.cpp b/apps/drivers/hmc5883/hmc5883.cpp
index 6fefbfafc..2b4fab151 100644
--- a/apps/drivers/hmc5883/hmc5883.cpp
+++ b/apps/drivers/hmc5883/hmc5883.cpp
@@ -1045,6 +1045,7 @@ int HMC5883::check_calibration()
_calibrated = false;
// XXX Notify system via uORB
}
+ return 0;
}
int HMC5883::set_excitement(unsigned enable)
diff --git a/apps/px4/tests/test_hrt.c b/apps/px4/tests/test_hrt.c
index f364ea080..3730272a2 100644
--- a/apps/px4/tests/test_hrt.c
+++ b/apps/px4/tests/test_hrt.c
@@ -39,6 +39,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/apps/px4/tests/test_uart_send.c b/apps/px4/tests/test_uart_send.c
index a88e617d9..f5c26e9f3 100644
--- a/apps/px4/tests/test_uart_send.c
+++ b/apps/px4/tests/test_uart_send.c
@@ -112,7 +112,7 @@ int test_uart_send(int argc, char *argv[])
char sample_test_uart[25];// = {'S', 'A', 'M', 'P', 'L', 'E', ' ', '\n'};
- int i, r, n;
+ int i, n;
uint64_t start_time = hrt_absolute_time();