Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Sep 21, 2022
1 parent bf59144 commit 454d747
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/i2c/WipperSnapper_I2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "drivers/WipperSnapper_I2C_Driver_PM25.h"
#include "drivers/WipperSnapper_I2C_Driver_SCD30.h"
#include "drivers/WipperSnapper_I2C_Driver_SCD40.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT3X.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
#include "drivers/WipperSnapper_I2C_Driver_SI7021.h"
#include "drivers/WipperSnapper_I2C_Driver_STEMMA_Soil_Sensor.h"
#include "drivers/WipperSnapper_I2C_Driver_TSL2591.h"
Expand Down
6 changes: 3 additions & 3 deletions src/components/i2c/drivers/WipperSnapper_I2C_Driver_SHT3X.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* products from Adafruit!
*
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* rewritten to use driver by Sensirion, help from Brent Rubell.
*
* MIT license, all text here must be included in any redistribution.
Expand Down Expand Up @@ -52,7 +52,7 @@ class WipperSnapper_I2C_Driver_SHT3X : public WipperSnapper_I2C_Driver {
*/
/*******************************************************************************/
bool begin() {
if(_sensorAddress==0x44) // if address 0x44 (dec:68), alternative = 0x45
if (_sensorAddress == 0x44) // if address 0x44 (dec:68), alternative = 0x45
_sht3x = new SHTSensor(SHTSensor::SHT3X);
else
_sht3x = new SHTSensor(SHTSensor::SHT3X_ALT);
Expand Down Expand Up @@ -94,7 +94,7 @@ class WipperSnapper_I2C_Driver_SHT3X : public WipperSnapper_I2C_Driver {
// populate temp and humidity objects with fresh data
if (!_sht3x->readSample())
return false;
humidEvent->relative_humidity = _sht3x->getHumidity();
humidEvent->relative_humidity = _sht3x->getHumidity();
return true;
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/i2c/drivers/WipperSnapper_I2C_Driver_SHT4X.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* products from Adafruit!
*
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* rewritten to use driver by Sensirion, help from Brent Rubell.
*
* MIT license, all text here must be included in any redistribution.
Expand Down Expand Up @@ -58,7 +58,7 @@ class WipperSnapper_I2C_Driver_SHT4X : public WipperSnapper_I2C_Driver {

// Use HIGH PRECISION - only supported by 3X/4X
_sht4x->setAccuracy(SHTSensor::SHT_ACCURACY_HIGH);

return true;
}

Expand Down Expand Up @@ -92,7 +92,7 @@ class WipperSnapper_I2C_Driver_SHT4X : public WipperSnapper_I2C_Driver {
// populate temp and humidity objects with fresh data
if (!_sht4x->readSample())
return false;
humidEvent->relative_humidity = _sht4x->getHumidity();
humidEvent->relative_humidity = _sht4x->getHumidity();
return true;
}

Expand Down

0 comments on commit 454d747

Please sign in to comment.