mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
interfaces: Removed isConfigured() from IModuleStaus
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:

committed by
Abhishek Malik

parent
f268437cd5
commit
9bc3d2ded0
@ -150,7 +150,7 @@ uint16_t SI7005::getMeasurement(uint8_t configValue) {
|
||||
|
||||
// Check we got the data we need
|
||||
if(length != SI7005_REG_DATA_LENGTH)
|
||||
UPM_THROW("read error");
|
||||
UPM_THROW("read error");
|
||||
|
||||
// Merge MSB and LSB
|
||||
rawData = ((uint16_t)( data[SI7005_REG_DATA_LOW] & 0xFFFF )) + ( (uint16_t)(( data[SI7005_REG_DATA_HIGH] & 0xFFFF ) << 8 ));
|
||||
@ -158,10 +158,6 @@ uint16_t SI7005::getMeasurement(uint8_t configValue) {
|
||||
return rawData;
|
||||
}
|
||||
|
||||
bool
|
||||
SI7005::isConfigured() {
|
||||
return status == mraa::SUCCESS;
|
||||
}
|
||||
|
||||
bool
|
||||
SI7005::isAvailable( )
|
||||
|
@ -88,20 +88,16 @@ class SI7005 : public ITemperatureSensor, public IHumiditySensor {
|
||||
* Get relative humidity measurement.
|
||||
*/
|
||||
uint16_t getHumidityRaw ();
|
||||
|
||||
|
||||
/**
|
||||
* Get relative humidity measurement.
|
||||
*/
|
||||
int getHumidityRelative ();
|
||||
/**
|
||||
* Returns whether the sensor is configured.
|
||||
*/
|
||||
bool isConfigured();
|
||||
|
||||
/**
|
||||
* Returns sensor module name
|
||||
*/
|
||||
const char* getModuleName() { return "si7005"; }
|
||||
const char* getModuleName() { return "si7005"; }
|
||||
|
||||
/**
|
||||
* Detects the sensor to ensure it is connected as required.
|
||||
|
Reference in New Issue
Block a user