diff --git a/src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs b/src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs index af49d8a92..75e614142 100644 --- a/src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs +++ b/src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs @@ -49,8 +49,8 @@ public uint ReadDoubleWord(long offset) // fall through, no break case Register.GPIO_Px_DIN: var ret = (uint) 0; - var portStart = portNumber * Constants.PINS_PER_PORT; - for (var i = 0; i < Constants.PINS_PER_PORT; i++) + var portStart = portNumber * EFMGPIOPort_Constants.PINS_PER_PORT; + for (var i = 0; i < EFMGPIOPort_Constants.PINS_PER_PORT; i++) { ret += Convert.ToUInt32(Connections[portStart + i].IsSet) << i; }