mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-29 14:15:33 +03:00 
			
		
		
		
	bme280: added missing return in non-void function
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
		| @@ -339,7 +339,7 @@ return v_data_uncomp_hum_int32; | ||||
| *   device address with global structure bme280 | ||||
| *-------------------------------------------------------------------------*/ | ||||
| int8_t BME280::I2C_routine() | ||||
|  { | ||||
| { | ||||
| /*--------------------------------------------------------------------------* | ||||
|  *  By using bme280 the following structure parameter can be accessed | ||||
|  *  Bus write function pointer: BME280_WR_FUNC_PTR | ||||
| @@ -371,9 +371,8 @@ int32_t BME280::i2c_write_string(uint8_t dev_addr,uint8_t* ptr, uint8_t cnt) | ||||
|     if((ret = m_i2c->write((const uint8_t*) (ptr), cnt)) != 0) | ||||
|     { | ||||
|         UPM_THROW("I2C write error"); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| /*  \Brief: The function is used as I2C bus write | ||||
| @@ -448,7 +447,6 @@ void BME280::BME280_delay_msek(uint16_t mseconds) | ||||
|     // Iterate nanosleep in a loop until the total sleep time is the original | ||||
|     // value of the seconds parameter | ||||
|     while ( ( nanosleep( &sleepTime, &sleepTime ) != 0 ) && ( errno == EINTR ) ); | ||||
|  | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mihai Tudor Panu
					Mihai Tudor Panu