Skip to content

Commit

Permalink
drop unnecessary call to _sgp30.IAQinit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Sep 24, 2024
1 parent 47da594 commit b8d5705
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
/*******************************************************************************/
bool begin() {
_sgp30 = new Adafruit_SGP30();
bool isInit = _sgp30->begin(_i2c);
if (isInit) {
_sgp30->IAQinit();
}
return isInit;
return _sgp30->begin(_i2c);
}

bool getEventECO2(sensors_event_t *senseEvent) {
Expand Down

0 comments on commit b8d5705

Please sign in to comment.