Merge pull request #14675 from 0xc0170/fix_i2c_start

i2c: `start()` should aquire the bus
pull/14743/head
Martin Kojtal 2021-06-07 20:49:58 +02:00 committed by GitHub
commit ae79b61765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ int I2C::read(int ack)
void I2C::start(void)
{
lock();
aquire();
i2c_start(&_i2c);
unlock();
}