Skip to content

Commit ae79b61

Browse files
authored
Merge pull request #14675 from 0xc0170/fix_i2c_start
i2c: `start()` should aquire the bus
2 parents 587eb41 + 3af058a commit ae79b61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/source/I2C.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ int I2C::read(int ack)
137137
void I2C::start(void)
138138
{
139139
lock();
140+
aquire();
140141
i2c_start(&_i2c);
141142
unlock();
142143
}

0 commit comments

Comments
 (0)