# HG changeset patch # User Paul Boddie # Date 1610407375 -3600 # Node ID d58099373644bbf2a9b00fad9f01264eea9bd899 # Parent 790377745ecd89e076da1f4a345b9e27ed7333b0 Added a comment about I2C pre-start status condition testing. diff -r 790377745ecd -r d58099373644 pkg/devices/lib/i2c/src/jz4730.cc --- a/pkg/devices/lib/i2c/src/jz4730.cc Sun Jan 10 22:21:57 2021 +0100 +++ b/pkg/devices/lib/i2c/src/jz4730.cc Tue Jan 12 00:22:55 2021 +0100 @@ -138,6 +138,10 @@ bool I2c_jz4730_channel::set_address(uint8_t address, bool read) { + // Waiting for long enough may eliminate a busy condition and thus permit a + // new transaction. 10ms appears to be long enough, whereas 1ms does not + // appear to be. In case this is insufficient, permit failure. + unsigned int limit = 10; do