From b8d57058acd4b33654abad2e07b9c46d8586e1af Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 24 Sep 2024 17:02:15 +0100 Subject: [PATCH] drop unnecessary call to _sgp30.IAQinit --- src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h index 32da8a53a..664695191 100644 --- a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h +++ b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP30.h @@ -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) {