mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14675 from 0xc0170/fix_i2c_start
i2c: `start()` should aquire the buspull/14743/head
commit
ae79b61765
|
@ -137,6 +137,7 @@ int I2C::read(int ack)
|
||||||
void I2C::start(void)
|
void I2C::start(void)
|
||||||
{
|
{
|
||||||
lock();
|
lock();
|
||||||
|
aquire();
|
||||||
i2c_start(&_i2c);
|
i2c_start(&_i2c);
|
||||||
unlock();
|
unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue