diff --git a/src/devices/Ft4222/Ft4222Spi.cs b/src/devices/Ft4222/Ft4222Spi.cs index b585b59256e5081fb98c6bbad60a3687230d9b6c..ca5b64f1300ed60313f58425bceba47403c7b22c 100644 --- a/src/devices/Ft4222/Ft4222Spi.cs +++ b/src/devices/Ft4222/Ft4222Spi.cs @@ -248,7 +248,7 @@ namespace Iot.Device.Ft4222 { Span toRead = stackalloc byte[1]; Read(toRead); - return toRead[1]; + return toRead[0]; } /// diff --git a/src/devices/Ft4222/README.md b/src/devices/Ft4222/README.md index 32e6b0b191ecece48d4a2967914aa2d466ed83d7..32cddad453da419254fa7e7556aefa27d8f57671 100644 --- a/src/devices/Ft4222/README.md +++ b/src/devices/Ft4222/README.md @@ -158,6 +158,6 @@ For the moment this project supports only SPI and I2C in a Windows environement. - [ ] SPI support for MacOS - [ ] I2C support for MacOS - [ ] GPIO support for MacOS -- [ ] SPI support for Linux 64 -- [ ] I2C support for Linux 64 -- [ ] GPIO support for Linux 64 +- [x] SPI support for Linux 64 +- [x] I2C support for Linux 64 +- [x] GPIO support for Linux 64