File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ class WipperSnapper_I2C_Driver_D6T1A : public WipperSnapper_I2C_Driver {
41
41
: WipperSnapper_I2C_Driver(i2c, sensorAddress) {
42
42
_i2c = i2c;
43
43
_sensorAddress = sensorAddress;
44
+ _deviceTemp = NAN;
45
+ _objectTemp = NAN;
46
+ _lastRead = 0 ;
44
47
}
45
48
46
49
/* ******************************************************************************/
@@ -130,9 +133,9 @@ class WipperSnapper_I2C_Driver_D6T1A : public WipperSnapper_I2C_Driver {
130
133
}
131
134
132
135
protected:
133
- float _deviceTemp = NAN; // /< Device temperature in Celsius
134
- float _objectTemp = NAN; // /< Object temperature in Celsius
135
- uint32_t _lastRead = 0 ; // /< Last time the sensor was read in milliseconds
136
+ float _deviceTemp; // /< Device temperature in Celsius
137
+ float _objectTemp; // /< Object temperature in Celsius
138
+ uint32_t _lastRead; // /< Last time the sensor was read in milliseconds
136
139
OmronD6T *_d6t1a = nullptr ; // /< D6T1A object
137
140
};
138
141
You can’t perform that action at this time.
0 commit comments