Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: espressif/arduino-esp32
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: anton-b/arduino-esp32
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: Prevent_lockup_in_i2cInitFix
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 22, 2017

  1. Copy the full SHA
    6fcc353 View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 cores/esp32/esp32-hal-i2c.c
5 changes: 3 additions & 2 deletions cores/esp32/esp32-hal-i2c.c
Original file line number Diff line number Diff line change
@@ -445,7 +445,8 @@ void i2cInitFix(i2c_t * i2c){
i2c->dev->fifo_data.data = 0;
i2cSetCmd(i2c, 1, I2C_CMD_WRITE, 1, false, false, false);
i2cSetCmd(i2c, 2, I2C_CMD_STOP, 0, false, false, false);
i2c->dev->ctr.trans_start = 1;
while(!i2c->dev->command[2].done);
do {
i2c->dev->ctr.trans_start = 1;
} while(!i2c->dev->command[2].done);
I2C_MUTEX_UNLOCK();
}