From c2721210dd8e10c84fe0788bf3525e3c5e67b563 Mon Sep 17 00:00:00 2001 From: Laurent Ougier-Simonin Date: Thu, 14 Jan 2021 13:15:14 +0100 Subject: [PATCH] [FIX] EFMGPIOPort: Forgot 'EFMGPIOPort_' perif on Constants class. --- src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }