From 0bab36a95a7013b1079e98a7e0f6ae312d3fd5a8 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 10 Jun 2015 14:57:10 -0600 Subject: [PATCH] mpu9150: getData() does not return a value defect #242 Signed-off-by: Jon Trulson Signed-off-by: Mihai Tudor Panu --- src/mpu9150/mpu9150.cxx | 2 +- src/mpu9150/mpu9150.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpu9150/mpu9150.cxx b/src/mpu9150/mpu9150.cxx index 1d139931..774139c7 100644 --- a/src/mpu9150/mpu9150.cxx +++ b/src/mpu9150/mpu9150.cxx @@ -81,7 +81,7 @@ MPU9150::getDeviceID () { return regData; } -mraa_result_t +void MPU9150::getData () { uint8_t buffer[14]; diff --git a/src/mpu9150/mpu9150.h b/src/mpu9150/mpu9150.h index 1638be4e..2c7bbdbe 100644 --- a/src/mpu9150/mpu9150.h +++ b/src/mpu9150/mpu9150.h @@ -159,7 +159,7 @@ class MPU9150 { * Get the Accelerometer, Gyro and Compass data from the chip and * save it in private section. */ - mraa_result_t getData (); + void getData (); /** * @param data structure with 3 axis (x,y,z)