Skip to content

Commit 7badc7d

Browse files
committed
[i2c] Fix transaction waiting forever
1 parent 578a082 commit 7badc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/architecture/interface/i2c_device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class I2cDevice
134134
runTransaction()
135135
{
136136
modm::this_fiber::poll([&]{ return startTransaction(); });
137-
modm::this_fiber::poll([&]{ return isTransactionRunning(); });
137+
modm::this_fiber::poll([&]{ return not isTransactionRunning(); });
138138
return wasTransactionSuccessful();
139139
}
140140

0 commit comments

Comments
 (0)