Skip to content

Commit 722a41d

Browse files
committed
Correct formattiing
1 parent 66fe637 commit 722a41d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver {
162162

163163
protected:
164164
Adafruit_SCD30 *_scd = nullptr; ///< SCD30 driver object
165-
ulong _lastRead = 0; ///< Last time the sensor was read
165+
ulong _lastRead = 0uL; ///< Last time the sensor was read
166166
sensors_event_t _temperature = {0}; ///< Temperature
167167
sensors_event_t _humidity = {0}; ///< Relative Humidity
168168
sensors_event_t _CO2 = {0}; ///< CO2

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
4242
: WipperSnapper_I2C_Driver(i2c, sensorAddress) {
4343
_i2c = i2c;
4444
_sensorAddress = sensorAddress;
45-
_lastRead = 0;
46-
_temperature = 20.0;
47-
_humidity = 50.0;
4845
}
4946

5047
/*******************************************************************************/
@@ -192,7 +189,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
192189
sensors_event_t _temperature = {0}; ///< Temperature
193190
sensors_event_t _humidity = {0}; ///< Relative Humidity
194191
sensors_event_t _CO2 = {0}; ///< CO2
195-
ulong _lastRead = 0; ///< Last time the sensor was read
192+
ulong _lastRead = 0uL; ///< Last time the sensor was read
196193
};
197194

198195
#endif // WipperSnapper_I2C_Driver_SCD4X_H

0 commit comments

Comments
 (0)