mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-30 14:44:56 +03:00 
			
		
		
		
	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
					Jon Trulson
				
			
				
					committed by
					
						 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
			
				
	
			
			
			 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
						parent
						
							3e82dd8d0a
						
					
				
				
					commit
					d2e11d6f11
				
			| @@ -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; | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user