From 4a919872ec93169af9a1d864c18487d1653ecb7f Mon Sep 17 00:00:00 2001 From: Joshua Hartmann Date: Sat, 5 Aug 2023 15:55:19 +0200 Subject: [PATCH] fixed device type check in PinCount (#2116) FT4232H has 8 pins per channel, both FT2232H and FT232H have 16 pins per channel --- src/devices/Ft232H/Ftx232HDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/Ft232H/Ftx232HDevice.cs b/src/devices/Ft232H/Ftx232HDevice.cs index ab2a69c8..856202a0 100644 --- a/src/devices/Ft232H/Ftx232HDevice.cs +++ b/src/devices/Ft232H/Ftx232HDevice.cs @@ -128,7 +128,7 @@ namespace Iot.Device.FtCommon /// /// Gets the number of pins for this specific FT device. /// - public int PinCount => Type == FtDeviceType.Ft4232H ? PinNumberFT2x : PinNumberFT4x; + public int PinCount => Type == FtDeviceType.Ft4232H ? PinNumberFT4x : PinNumberFT2x; /// /// Gets or sets the I2C Bus frequency. Default value is 400 KHz. -- GitLab