diff --git a/src/detect/ScanI2CTwoWire.cpp b/src/detect/ScanI2CTwoWire.cpp index 38d860f65..849e22348 100644 --- a/src/detect/ScanI2CTwoWire.cpp +++ b/src/detect/ScanI2CTwoWire.cpp @@ -140,7 +140,7 @@ bool ScanI2CTwoWire::i2cCommandResponseLength(ScanI2C::DeviceAddress addr, uint1 #include "../modules/Telemetry/Sensor/SEN5XSensor.h" bool probeSEN5X(TwoWire *i2cBus, uint8_t address, ScanI2C::I2CPort port) { - SEN5XSensor sen5xsensor = SEN5XSensor(); + SEN5XSensor sen5xsensor; return sen5xsensor.probe(i2cBus, address, port); } #endif diff --git a/src/modules/Telemetry/Sensor/SEN5XSensor.cpp b/src/modules/Telemetry/Sensor/SEN5XSensor.cpp index 0070a7598..d15f543e8 100644 --- a/src/modules/Telemetry/Sensor/SEN5XSensor.cpp +++ b/src/modules/Telemetry/Sensor/SEN5XSensor.cpp @@ -86,16 +86,8 @@ bool SEN5XSensor::probe(TwoWire *bus, uint8_t address, ScanI2C::I2CPort port) reClockI2C.setup(_bus, _port); #endif /* SEN5X_I2C_CLOCK_SPEED */ - delay(50); // without this there is an error on the deviceReset function - - if (!sendCommand(SEN5X_RESET)) { - LOG_ERROR("SEN5X: error resetting device"); - return false; - } - delay(200); // From Sensirion Datasheet - if (!findModel()) { - LOG_ERROR("SEN5X: error finding sensor model"); + LOG_DEBUG("SEN5X: can't find SEN5X model"); return false; } return true;