This fixes "PERL WARNING: Use of uninitialized value in concatenation
(.) or string at ./FHEM/52_I2C_HDC1008.pm line 180". The {type} element
seems to be completely unused in the rest of the code, no idea what the
intention of the original author was when adding it here.
Thanks to joco for reporting! (Forum: #115543)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23153 2b470e98-0d58-463d-a4d8-8e2adae1ed80
Ouch, my last change from Aug, 1st (r22515) broke update of temperature
reading. Fix and simplify the temperature and humidity reading code -
hopefully finally.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This was updated twice on each sensor read with strange trigger settings
causing problems when used with "event-min-interval".
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22515 2b470e98-0d58-463d-a4d8-8e2adae1ed80
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