lsm303: make code alot more robust and fix getHeading() call

Note that from this UPM release libmraa 0.5.2+ is required

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-07 10:53:42 +00:00
parent e9da4719fb
commit 44b1ff7f75
3 changed files with 35 additions and 30 deletions

View File

@ -9,7 +9,7 @@ endif ()
find_package (Threads REQUIRED)
find_package (PkgConfig REQUIRED)
# force the libmraa version to be the required version
pkg_check_modules (MRAA REQUIRED mraa>=0.4.5)
pkg_check_modules (MRAA REQUIRED mraa>=0.5.2)
message (INFO " found libmraa version: ${MRAA_VERSION}")
# Appends the cmake/modules path to MAKE_MODULE_PATH variable.