Skip to content

Commit 0b020d4

Browse files
committed
removed override / const
1 parent c9ec675 commit 0b020d4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
10321032
_drivers_out.push_back(_ssd1306);
10331033
WS_DEBUG_PRINTLN("SSD1306 display initialized Successfully!");
10341034
} else {
1035-
WS_DEBUG_PRINTLN("ERROR: I2C device type not found!")
1035+
WS_DEBUG_PRINTLN("ERROR: I2C device type not found!");
10361036
_busStatusResponse =
10371037
wippersnapper_i2c_v1_BusResponse_BUS_RESPONSE_UNSUPPORTED_SENSOR;
10381038
return false;

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
4646
@returns True if initialized successfully, False otherwise.
4747
*/
4848
/*******************************************************************************/
49-
bool begin() override {
49+
bool begin() {
5050
_sgp30 = new Adafruit_SGP30();
5151
if (!_sgp30->begin(_i2c)) {
5252
delete _sgp30; // avoid leak on init failure
@@ -88,6 +88,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
8888
}
8989

9090
protected:
91+
9192
Adafruit_SGP30 *_sgp30; ///< Pointer to SGP30 sensor object
9293

9394
// Fast sampling state
@@ -96,7 +97,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
9697
uint32_t _eco2Sum = 0;
9798
uint32_t _tvocSum = 0;
9899

99-
inline bool iaqEnabled() const {
100+
inline bool iaqEnabled() {
100101
// Enable IAQ background reads if either metric is requested
101102
return (getSensorECO2Period() > 0) || (getSensorTVOCPeriod() > 0);
102103
}

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP40.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
6363
@returns True if initialized successfully, False otherwise.
6464
*/
6565
/*******************************************************************************/
66-
bool begin() override {
66+
bool begin() {
6767
_sgp40 = new Adafruit_SGP40();
6868
if (!_sgp40 || !_sgp40->begin(_i2c)) {
6969
delete _sgp40;
@@ -142,6 +142,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
142142
}
143143

144144
protected:
145+
145146
Adafruit_SGP40 *_sgp40; ///< SGP40
146147
// background accumulation state
147148
uint32_t _lastFastMs = 0;
@@ -150,7 +151,7 @@ class WipperSnapper_I2C_Driver_SGP40 : public WipperSnapper_I2C_Driver {
150151
uint32_t _rawSum = 0;
151152

152153
// enable fast sampling if either output is requested
153-
inline bool vocEnabled() const {
154+
inline bool vocEnabled() {
154155
return (getSensorVOCIndexPeriod() > 0) || (getSensorRawPeriod() > 0);
155156
}
156157
};

0 commit comments

Comments
 (0)