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/modules | |
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/modules')
-rw-r--r-- | src/modules/sensors/sensors.cpp | 2 |
1 files changed, 1 insertions, 1 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 */ |