aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-04-25 09:02:34 +0200
committerLorenz Meier <lm@inf.ethz.ch>2015-04-27 09:07:53 +0200
commit3835b7a6ec712a566b00039fb16f6c0f022ed263 (patch)
tree3e78a8f881934cb2ce76eac752f9aad4d2f0cf38
parent3c76006541a521f5ce0a3ba47c0a9949c7eb50c4 (diff)
downloadpx4-firmware-3835b7a6ec712a566b00039fb16f6c0f022ed263.tar.gz
px4-firmware-3835b7a6ec712a566b00039fb16f6c0f022ed263.tar.bz2
px4-firmware-3835b7a6ec712a566b00039fb16f6c0f022ed263.zip
HMC5883: Let user know we just did not find one
-rw-r--r--src/drivers/hmc5883/hmc5883.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 3a3848446..5bf88da3d 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -1490,8 +1490,9 @@ start(enum HMC5883_BUS busid, enum Rotation rotation)
started |= start_bus(bus_options[i], rotation);
}
- if (!started)
- errx(1, "driver start failed");
+ if (!started) {
+ exit(1);
+ }
}
/**