Skip to content

Temperature correction missing for some sensors #1044

@steefan85

Description

@steefan85

There is a feature for temperature correction in the settings which I used for my BME280 to lower the temperaure value.
Recently I changed to a SHT3X Sensor and the correction is now ineffective.

I reviewed the code and saw that for BME280 there is a correction

else
{
last_value_BMX280_T = t + readCorrectionOffset(cfg::temp_correction);
last_value_BMX280_P = p;
if (bmx280.sensorID() == BME280_SENSOR_ID)

but for some sensors the correction is missing, e.g.:

else
{
last_value_SHT3X_T = t;
last_value_SHT3X_H = h;

The SHT31x is not the only affected sensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions