mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 17:30:01 +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
@ -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 ) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user