File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments