Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading