diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-03-09 11:20:06 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-03-09 11:20:06 +0100 |
commit | 11cb9df05b3a0fb3312de59db2cf44238b10517c (patch) | |
tree | 7cc05b4b1afd473a75cdb6a56cd508a82108b056 /apps/drivers/mb12xx | |
parent | a54c0395cc511569550991e67a23e5bd76845cd8 (diff) | |
download | px4-firmware-11cb9df05b3a0fb3312de59db2cf44238b10517c.tar.gz px4-firmware-11cb9df05b3a0fb3312de59db2cf44238b10517c.tar.bz2 px4-firmware-11cb9df05b3a0fb3312de59db2cf44238b10517c.zip |
After the mb12xx driver was merged way too early, make the best out of it and fix up the init phase to the driver bails out if there is no sensor connected
Diffstat (limited to 'apps/drivers/mb12xx')
-rw-r--r-- | apps/drivers/mb12xx/mb12xx.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/drivers/mb12xx/mb12xx.cpp b/apps/drivers/mb12xx/mb12xx.cpp index 0e4712f5a..406c726fb 100644 --- a/apps/drivers/mb12xx/mb12xx.cpp +++ b/apps/drivers/mb12xx/mb12xx.cpp @@ -259,9 +259,7 @@ out: int MB12XX::probe() { - // TODO: take a range reading and see if it is between the min and max - - return OK; + return measure(); } void |