From 11cb9df05b3a0fb3312de59db2cf44238b10517c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 9 Mar 2013 11:20:06 +0100 Subject: 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 --- apps/drivers/mb12xx/mb12xx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/drivers/mb12xx/mb12xx.cpp') 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 -- cgit v1.2.3