Skip to content

Commit 3871b0c

Browse files
winkjabrauchli
authored andcommitted
allow passing an address to SHT3xSensor
1 parent 1b2b4b6 commit 3871b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SHTSensor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ class SHT3xSensor : public SHTI2cSensor
171171
static const uint8_t SHT3x_I2C_ADDRESS_44 = 0x44;
172172
static const uint8_t SHT3x_I2C_ADDRESS_45 = 0x45;
173173

174-
SHT3xSensor()
175-
: SHTI2cSensor(SHT3x_I2C_ADDRESS_44, SHT3x_ACCURACY_HIGH,
174+
SHT3xSensor(uint8_t i2cAddress = SHT3x_I2C_ADDRESS_44)
175+
: SHTI2cSensor(i2cAddress, SHT3x_ACCURACY_HIGH,
176176
-45, 175, 65535, 100, 65535)
177177
{
178178
}

0 commit comments

Comments
 (0)