We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f0875 commit bd3eb2dCopy full SHA for bd3eb2d
src/devices/Ft232H/Ft232HI2cBus.cs
@@ -37,7 +37,7 @@ public Ft232HI2cBus(Ftx232HDevice deviceInformation)
37
/// <inheritdoc/>
38
public override I2cDevice CreateDevice(int deviceAddress)
39
{
40
- if (!_usedAddresses.ContainsKey(deviceAddress))
+ if (_usedAddresses.ContainsKey(deviceAddress))
41
42
throw new ArgumentException($"Device with address 0x{deviceAddress,0X2} is already open.", nameof(deviceAddress));
43
}
0 commit comments