Skip to content

Commit 06427ff

Browse files
authored
Merge pull request #600 from adafruit/tweak-sgp30-init
Adjust SGP30 init to not call IAQinit unnecessarily
2 parents 784a166 + 5d0241f commit 06427ff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
4444
/*******************************************************************************/
4545
bool begin() {
4646
_sgp30 = new Adafruit_SGP30();
47-
bool isInit = _sgp30->begin(_i2c);
48-
if (isInit) {
49-
_sgp30->IAQinit();
50-
}
51-
return isInit;
47+
return _sgp30->begin(_i2c);
5248
}
5349

5450
bool getEventECO2(sensors_event_t *senseEvent) {

0 commit comments

Comments
 (0)