File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1032,7 +1032,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
1032
1032
_drivers_out.push_back (_ssd1306);
1033
1033
WS_DEBUG_PRINTLN (" SSD1306 display initialized Successfully!" );
1034
1034
} else {
1035
- WS_DEBUG_PRINTLN (" ERROR: I2C device type not found!" )
1035
+ WS_DEBUG_PRINTLN (" ERROR: I2C device type not found!" );
1036
1036
_busStatusResponse =
1037
1037
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSUPPORTED_SENSOR;
1038
1038
return false ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
46
46
@returns True if initialized successfully, False otherwise.
47
47
*/
48
48
/* ******************************************************************************/
49
- bool begin () override {
49
+ bool begin () {
50
50
_sgp30 = new Adafruit_SGP30 ();
51
51
if (!_sgp30->begin (_i2c)) {
52
52
delete _sgp30; // avoid leak on init failure
@@ -88,6 +88,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
88
88
}
89
89
90
90
protected:
91
+
91
92
Adafruit_SGP30 *_sgp30; // /< Pointer to SGP30 sensor object
92
93
93
94
// Fast sampling state
@@ -96,7 +97,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
96
97
uint32_t _eco2Sum = 0 ;
97
98
uint32_t _tvocSum = 0 ;
98
99
99
- inline bool iaqEnabled () const {
100
+ inline bool iaqEnabled () {
100
101
// Enable IAQ background reads if either metric is requested
101
102
return (getSensorECO2Period () > 0 ) || (getSensorTVOCPeriod () > 0 );
102
103
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
63
63
@returns True if initialized successfully, False otherwise.
64
64
*/
65
65
/* ******************************************************************************/
66
- bool begin () override {
66
+ bool begin () {
67
67
_sgp40 = new Adafruit_SGP40 ();
68
68
if (!_sgp40 || !_sgp40->begin (_i2c)) {
69
69
delete _sgp40;
@@ -142,6 +142,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
142
142
}
143
143
144
144
protected:
145
+
145
146
Adafruit_SGP40 *_sgp40; // /< SGP40
146
147
// background accumulation state
147
148
uint32_t _lastFastMs = 0 ;
@@ -150,7 +151,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
150
151
uint32_t _rawSum = 0 ;
151
152
152
153
// enable fast sampling if either output is requested
153
- inline bool vocEnabled () const {
154
+ inline bool vocEnabled () {
154
155
return (getSensorVOCIndexPeriod () > 0 ) || (getSensorRawPeriod () > 0 );
155
156
}
156
157
};
You can’t perform that action at this time.
0 commit comments