mirror of
https://github.com/eclipse/upm.git
synced 2025-03-27 10:49:59 +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:
parent
a88ec4237d
commit
102d86870a
@ -339,7 +339,7 @@ return v_data_uncomp_hum_int32;
|
|||||||
* device address with global structure bme280
|
* device address with global structure bme280
|
||||||
*-------------------------------------------------------------------------*/
|
*-------------------------------------------------------------------------*/
|
||||||
int8_t BME280::I2C_routine()
|
int8_t BME280::I2C_routine()
|
||||||
{
|
{
|
||||||
/*--------------------------------------------------------------------------*
|
/*--------------------------------------------------------------------------*
|
||||||
* By using bme280 the following structure parameter can be accessed
|
* By using bme280 the following structure parameter can be accessed
|
||||||
* Bus write function pointer: BME280_WR_FUNC_PTR
|
* 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)
|
if((ret = m_i2c->write((const uint8_t*) (ptr), cnt)) != 0)
|
||||||
{
|
{
|
||||||
UPM_THROW("I2C write error");
|
UPM_THROW("I2C write error");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* \Brief: The function is used as I2C bus write
|
/* \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
|
// Iterate nanosleep in a loop until the total sleep time is the original
|
||||||
// value of the seconds parameter
|
// value of the seconds parameter
|
||||||
while ( ( nanosleep( &sleepTime, &sleepTime ) != 0 ) && ( errno == EINTR ) );
|
while ( ( nanosleep( &sleepTime, &sleepTime ) != 0 ) && ( errno == EINTR ) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user