From d2e11d6f1106ad08d6293a449c242a38acc98101 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 10 Jun 2015 14:48:02 -0600 Subject: [PATCH] itg3200: calibrate() doesn't return anything defect #191 Signed-off-by: Jon Trulson Signed-off-by: Mihai Tudor Panu --- src/itg3200/itg3200.cxx | 2 +- src/itg3200/itg3200.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/itg3200/itg3200.cxx b/src/itg3200/itg3200.cxx index a3562e68..bdc45b82 100644 --- a/src/itg3200/itg3200.cxx +++ b/src/itg3200/itg3200.cxx @@ -81,7 +81,7 @@ Itg3200::~Itg3200() mraa_i2c_stop(m_i2c); } -mraa_result_t +void Itg3200::calibrate(void) { int reads = 600; diff --git a/src/itg3200/itg3200.h b/src/itg3200/itg3200.h index 0760a2b4..c51c89fe 100644 --- a/src/itg3200/itg3200.h +++ b/src/itg3200/itg3200.h @@ -73,9 +73,8 @@ public: * Calibrates the sensor to 0 on all axes. Sensor needs to be resting for accurate calibration. * Takes about 3 seconds and is also called by constructor on object creation. * - * @return 0 for successful calibration */ - mraa_result_t calibrate(); + void calibrate(); /** * Returns the temperature reading from the integrated temperature sensor in Celsius degrees