Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust SGP30 init to not call IAQinit unnecessarily #600

Merged
merged 1 commit into from
Sep 24, 2024
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