diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-19 17:35:07 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-19 17:35:07 +0200 |
commit | f4b5a17a7b6385869933cd195afd674fa532e735 (patch) | |
tree | ff1f58b85bedb34f4a78ab0381024586825c8867 /src | |
parent | 871b4c19bc65bf923887e0bd32e1889db1c71aca (diff) | |
download | px4-firmware-f4b5a17a7b6385869933cd195afd674fa532e735.tar.gz px4-firmware-f4b5a17a7b6385869933cd195afd674fa532e735.tar.bz2 px4-firmware-f4b5a17a7b6385869933cd195afd674fa532e735.zip |
Improved sensor startup and error checking
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/sensors/sensors.cpp | 2 | ||||
-rw-r--r-- | src/systemcmds/preflight_check/preflight_check.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index a6204c9fa..6e57a79a8 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -953,7 +953,7 @@ Sensors::baro_init() if (fd < 0) { warn("%s", BARO_DEVICE_PATH); - warnx("No barometer found, ignoring"); + errx(1, "FATAL: No barometer found"); } /* set the driver to poll at 150Hz */ diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index d1dd85d47..e7d9ce85f 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -263,7 +263,7 @@ system_eval: led_toggle(leds, LED_BLUE); /* display and sound error */ - for (int i = 0; i < 150; i++) + for (int i = 0; i < 50; i++) { led_toggle(leds, LED_BLUE); led_toggle(leds, LED_AMBER); |