diff --git a/Source/Meadow.Foundation.Peripherals/ICs.IOExpanders.Pcx857x/Driver/Drivers/Extras/Pcx8574.cs b/Source/Meadow.Foundation.Peripherals/ICs.IOExpanders.Pcx857x/Driver/Drivers/Extras/Pcx8574.cs index 480249e8f3..0329dcdf2c 100644 --- a/Source/Meadow.Foundation.Peripherals/ICs.IOExpanders.Pcx857x/Driver/Drivers/Extras/Pcx8574.cs +++ b/Source/Meadow.Foundation.Peripherals/ICs.IOExpanders.Pcx857x/Driver/Drivers/Extras/Pcx8574.cs @@ -158,7 +158,7 @@ protected byte ReadState8() { Span buffer = stackalloc byte[1]; i2cComms.Read(buffer); - return buffer[1]; + return buffer[0]; } ///