itg3200: calibrate() doesn't return anything

defect #191

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson 2015-06-10 14:48:02 -06:00 committed by Mihai Tudor Panu
parent 3e82dd8d0a
commit d2e11d6f11
2 changed files with 2 additions and 3 deletions

View File

@ -81,7 +81,7 @@ Itg3200::~Itg3200()
mraa_i2c_stop(m_i2c); mraa_i2c_stop(m_i2c);
} }
mraa_result_t void
Itg3200::calibrate(void) Itg3200::calibrate(void)
{ {
int reads = 600; int reads = 600;

View File

@ -73,9 +73,8 @@ public:
* Calibrates the sensor to 0 on all axes. Sensor needs to be resting for accurate calibration. * 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. * 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 * Returns the temperature reading from the integrated temperature sensor in Celsius degrees