From 40196275d0e899eac49731d0c2b1dda96cafb84f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 5 Jan 2014 15:23:54 +0100 Subject: Compile warning fixes on preflight check --- src/systemcmds/preflight_check/preflight_check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/systemcmds') diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index 982b03782..86e4ff545 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -87,9 +88,7 @@ int preflight_check_main(int argc, char *argv[]) /* give the system some time to sample the sensors in the background */ usleep(150000); - /* ---- MAG ---- */ - close(fd); fd = open(MAG_DEVICE_PATH, 0); if (fd < 0) { warn("failed to open magnetometer - start with 'hmc5883 start' or 'lsm303d start'"); -- cgit v1.2.3