mirror of
https://github.com/eclipse/upm.git
synced 2025-07-29 07:01:17 +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
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user