You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew ArgumentException($"Device with address 0x{deviceAddress,0X2} is already open.", nameof(deviceAddress));
}
This checks if the device is already in the used addresses list, and if not in the list it will throw the error.
This is the wrong way around. The error should be thrown when the device is in the list, not when it is not in the list.
Inverting the check makes the samples run fine again.
The text was updated successfully, but these errors were encountered:
I'm unable to create an I2C device using the Ft232H device. It always returns 'Device already open'.
Even running the sample code returns this issue.
Looking through the code I found this line of code:
iot/src/devices/Ft232H/Ft232HI2cBus.cs
Lines 40 to 43 in 30f0875
This checks if the device is already in the used addresses list, and if not in the list it will throw the error.
This is the wrong way around. The error should be thrown when the device is in the list, not when it is not in the list.
Inverting the check makes the samples run fine again.
The text was updated successfully, but these errors were encountered: