According to datasheet of HDC1008 and HDC1080, least two bits of temp
and hum register shall always be "0", so ignore value if we see another
value there. This seems to finally eliminate sporadic readings of 125°C
and/or 100% rH.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16705 2b470e98-0d58-463d-a4d8-8e2adae1ed80
The code used to ignore I2C write errors reported by the IODev (e.g.
when triggering a measurement) and just continued. While the subsequent
read should fail if sensor doesn't have values, it sometimes didn't for
me, leading to sporadic reading of 125°C and/or 100% rH. In case of
write errors, just retry current step until it succeeds.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16703 2b470e98-0d58-463d-a4d8-8e2adae1ed80