Closed forGGe closed 7 years ago
I'll decipher what happens:
It fails because the device did not answer with an ACK (due to it being resetting). Now the I2C driver is waiting for a Master Transmitter Mode Selected event, which never occurs due to the error.
This issue directly relates to #19. I would say, this issue is an instance of absent error handling.
A fast workaround is to add a ~15ms delay to allow HTU21D complete reset before issuing the read command.
A fast workaround is to add a ~15ms delay to allow HTU21D complete reset before issuing the read command.
@Dubland, since you are working on #183 , it will be useful to you also check @rasendubi's workaround.
ping @Dubland ?
With delay after soft reset example working fine. Shall I create PR for adding the delay?
Also, need to swap RX and TX for UART-to-USB converter in the documentation.
Shall I create PR for adding the delay?
Yes please.
@Dubland now, when #271 is merged, I propose to try find real root cause and fix it. @rasendubi can guide you trough it.
@Dubland any news?
Implement in #279 Thanks to @Dubland !
See analyser output: