Skip to content

Commit d2a380b

Browse files
winkjabrauchli
authored andcommitted
make all constants uppercase
1 parent c287ae8 commit d2a380b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

SHTSensor.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,16 @@ class SHTC1Sensor : public SHTI2cSensor
164164
class SHT3xSensor : public SHTI2cSensor
165165
{
166166
private:
167-
static const uint16_t SHT3x_ACCURACY_HIGH = 0x2c06;
168-
static const uint16_t SHT3x_ACCURACY_MEDIUM = 0x2c0d;
169-
static const uint16_t SHT3x_ACCURACY_LOW = 0x2c10;
167+
static const uint16_t SHT3X_ACCURACY_HIGH = 0x2c06;
168+
static const uint16_t SHT3X_ACCURACY_MEDIUM = 0x2c0d;
169+
static const uint16_t SHT3X_ACCURACY_LOW = 0x2c10;
170170

171171
public:
172-
static const uint8_t SHT3x_I2C_ADDRESS_44 = 0x44;
173-
static const uint8_t SHT3x_I2C_ADDRESS_45 = 0x45;
172+
static const uint8_t SHT3X_I2C_ADDRESS_44 = 0x44;
173+
static const uint8_t SHT3X_I2C_ADDRESS_45 = 0x45;
174174

175-
SHT3xSensor(uint8_t i2cAddress = SHT3x_I2C_ADDRESS_44)
176-
: SHTI2cSensor(i2cAddress, SHT3x_ACCURACY_HIGH,
175+
SHT3xSensor(uint8_t i2cAddress = SHT3X_I2C_ADDRESS_44)
176+
: SHTI2cSensor(i2cAddress, SHT3X_ACCURACY_HIGH,
177177
-45, 175, 65535, 100, 65535)
178178
{
179179
}
@@ -182,13 +182,13 @@ class SHT3xSensor : public SHTI2cSensor
182182
{
183183
switch (newAccuracy) {
184184
case SHTSensor::SHT_ACCURACY_HIGH:
185-
mI2cCommand = SHT3x_ACCURACY_HIGH;
185+
mI2cCommand = SHT3X_ACCURACY_HIGH;
186186
break;
187187
case SHTSensor::SHT_ACCURACY_MEDIUM:
188-
mI2cCommand = SHT3x_ACCURACY_MEDIUM;
188+
mI2cCommand = SHT3X_ACCURACY_MEDIUM;
189189
break;
190190
case SHTSensor::SHT_ACCURACY_LOW:
191-
mI2cCommand = SHT3x_ACCURACY_LOW;
191+
mI2cCommand = SHT3X_ACCURACY_LOW;
192192
break;
193193
default:
194194
return false;
@@ -239,7 +239,7 @@ bool SHTSensor::init()
239239
break;
240240

241241
case SHT3X_ALT:
242-
mSensor = new SHT3xSensor(SHT3xSensor::SHT3x_I2C_ADDRESS_45);
242+
mSensor = new SHT3xSensor(SHT3xSensor::SHT3X_I2C_ADDRESS_45);
243243
break;
244244

245245
case SHTW1:

0 commit comments

Comments
 (0)