Skip to content

Commit 3af058a

Browse files
committed
i2c: start() should aquire the bus
From the history it looks like aquire was not added explicitely to start. I do not see why as it's the condition that must be sent when communication is initiated. write/read/transfer invoke `aquire()`
1 parent 14e5d30 commit 3af058a

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)