Skip to content

Commit 1b2b4b6

Browse files
winkjabrauchli
authored andcommitted
move SHT3x address constants to SHT3xSensor class
1 parent 61cf4ff commit 1b2b4b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SHTSensor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ class SHT3xSensor : public SHTI2cSensor
168168
static const uint16_t SHT3x_ACCURACY_MEDIUM = 0x2c0d;
169169
static const uint16_t SHT3x_ACCURACY_LOW = 0x2c10;
170170

171+
static const uint8_t SHT3x_I2C_ADDRESS_44 = 0x44;
172+
static const uint8_t SHT3x_I2C_ADDRESS_45 = 0x45;
173+
171174
SHT3xSensor()
172175
: SHTI2cSensor(SHT3x_I2C_ADDRESS_44, SHT3x_ACCURACY_HIGH,
173176
-45, 175, 65535, 100, 65535)

SHTSensor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ class SHTSensor
155155
float mHumidity;
156156
};
157157

158-
// I2c addresses used by the SHT3x-DIS
159-
const uint8_t SHT3x_I2C_ADDRESS_44 = 0x44;
160-
const uint8_t SHT3x_I2C_ADDRESS_45 = 0x45;
161158

162159
/** Abstract class for a digital SHT Sensor driver */
163160
class SHTSensorDriver

0 commit comments

Comments
 (0)