Skip to content

Commit 454d747

Browse files
committed
clang
1 parent bf59144 commit 454d747

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/i2c/WipperSnapper_I2C.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#include "drivers/WipperSnapper_I2C_Driver_PM25.h"
3030
#include "drivers/WipperSnapper_I2C_Driver_SCD30.h"
3131
#include "drivers/WipperSnapper_I2C_Driver_SCD40.h"
32-
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
3332
#include "drivers/WipperSnapper_I2C_Driver_SHT3X.h"
33+
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
3434
#include "drivers/WipperSnapper_I2C_Driver_SI7021.h"
3535
#include "drivers/WipperSnapper_I2C_Driver_STEMMA_Soil_Sensor.h"
3636
#include "drivers/WipperSnapper_I2C_Driver_TSL2591.h"

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SHT3X.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* products from Adafruit!
99
*
1010
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
11-
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
11+
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
1212
* rewritten to use driver by Sensirion, help from Brent Rubell.
1313
*
1414
* MIT license, all text here must be included in any redistribution.
@@ -52,7 +52,7 @@ class WipperSnapper_I2C_Driver_SHT3X : public WipperSnapper_I2C_Driver {
5252
*/
5353
/*******************************************************************************/
5454
bool begin() {
55-
if(_sensorAddress==0x44) // if address 0x44 (dec:68), alternative = 0x45
55+
if (_sensorAddress == 0x44) // if address 0x44 (dec:68), alternative = 0x45
5656
_sht3x = new SHTSensor(SHTSensor::SHT3X);
5757
else
5858
_sht3x = new SHTSensor(SHTSensor::SHT3X_ALT);
@@ -94,7 +94,7 @@ class WipperSnapper_I2C_Driver_SHT3X : public WipperSnapper_I2C_Driver {
9494
// populate temp and humidity objects with fresh data
9595
if (!_sht3x->readSample())
9696
return false;
97-
humidEvent->relative_humidity = _sht3x->getHumidity();
97+
humidEvent->relative_humidity = _sht3x->getHumidity();
9898
return true;
9999
}
100100

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SHT4X.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* products from Adafruit!
99
*
1010
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
11-
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
11+
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
1212
* rewritten to use driver by Sensirion, help from Brent Rubell.
1313
*
1414
* MIT license, all text here must be included in any redistribution.
@@ -58,7 +58,7 @@ class WipperSnapper_I2C_Driver_SHT4X : public WipperSnapper_I2C_Driver {
5858

5959
// Use HIGH PRECISION - only supported by 3X/4X
6060
_sht4x->setAccuracy(SHTSensor::SHT_ACCURACY_HIGH);
61-
61+
6262
return true;
6363
}
6464

@@ -92,7 +92,7 @@ class WipperSnapper_I2C_Driver_SHT4X : public WipperSnapper_I2C_Driver {
9292
// populate temp and humidity objects with fresh data
9393
if (!_sht4x->readSample())
9494
return false;
95-
humidEvent->relative_humidity = _sht4x->getHumidity();
95+
humidEvent->relative_humidity = _sht4x->getHumidity();
9696
return true;
9797
}
9898

0 commit comments

Comments
 (0)