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