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:
Henry Bruce
2016-01-21 16:25:49 -08:00
committed by Abhishek Malik
parent f268437cd5
commit 9bc3d2ded0
23 changed files with 132 additions and 224 deletions

View File

@ -98,7 +98,6 @@ BMP180::BMP180 (int bus, int devAddr, uint8_t mode) {
m_name = "BMP180";
m_controlAddr = devAddr;
m_bus = bus;
configured = false;
m_i2c = new mraa::I2c(m_bus);
@ -113,7 +112,6 @@ BMP180::BMP180 (int bus, int devAddr, uint8_t mode) {
UPM_THROW("Init failed");
getTemperatureCelcius();
configured = true;
}
BMP180::~BMP180() {
@ -286,7 +284,3 @@ BMP180::isAvailable() {
return true;
}
bool
BMP180::isConfigured() {
return configured;
}

View File

@ -65,7 +65,7 @@ namespace upm {
* @con i2c
* @if ipressuresensor
*
*/
class BMP180 : public IPressureSensor, public ITemperatureSensor {
@ -100,16 +100,11 @@ class BMP180 : public IPressureSensor, public ITemperatureSensor {
*/
int getTemperatureCelcius();
/**
* Returns whether the sensor is configured.
*/
bool isConfigured();
/**
* Returns whether the correct chip is present at the given address.
*/
bool isAvailable();
const char* getModuleName() { return "bmp180"; }
const char* getModuleName() { return m_name.c_str(); }
private:
std::string m_name;
@ -125,8 +120,6 @@ class BMP180 : public IPressureSensor, public ITemperatureSensor {
int32_t b5;
bool configured;
bool getCalibrationData();
};