Revision 16703: 52_I2C_HDC1008.pm: improve and restructure I2C error handling The ...

Begonnen von System, 07 Mai 2018, 23:30:13

Vorheriges Thema - Nächstes Thema

System

Revision 16703: 52_I2C_HDC1008.pm: improve and restructure I2C error handling
The ...


52_I2C_HDC1008.pm: improve and restructure I2C error handling
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.

Source: Revision 16703: 52_I2C_HDC1008.pm: improve and restructure I2C error handling
The ...