未验证 提交 4a919872 编写于 作者: J Joshua Hartmann 提交者: GitHub

fixed device type check in PinCount (#2116)

FT4232H has 8 pins per channel, both FT2232H and FT232H have 16 pins per channel
上级 3ab2cad1
......@@ -128,7 +128,7 @@ namespace Iot.Device.FtCommon
/// <summary>
/// Gets the number of pins for this specific FT device.
/// </summary>
public int PinCount => Type == FtDeviceType.Ft4232H ? PinNumberFT2x : PinNumberFT4x;
public int PinCount => Type == FtDeviceType.Ft4232H ? PinNumberFT4x : PinNumberFT2x;
/// <summary>
/// Gets or sets the I2C Bus frequency. Default value is 400 KHz.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册