mirror of
https://github.com/arendst/Tasmota.git
synced 2026-03-08 00:07:34 +01:00
Workaround invalid detection of SHT3x sensors
Workaround invalid detection of SHT3x sensors (#6067)
This commit is contained in:
@@ -71,7 +71,7 @@ bool Sht3xRead(float &t, float &h, uint8_t sht3x_address)
|
||||
};
|
||||
t = ConvertTemp((float)((((data[0] << 8) | data[1]) * 175) / 65535.0) - 45);
|
||||
h = ConvertHumidity((float)((((data[3] << 8) | data[4]) * 100) / 65535.0)); // Set global humidity
|
||||
return (!isnan(t) && !isnan(h));
|
||||
return (!isnan(t) && !isnan(h) && (h != 0));
|
||||
}
|
||||
|
||||
/********************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user