Skip to content

Commit

Permalink
[FIX] EFMGPIOPort: Forgot 'EFMGPIOPort_' perif on Constants class.
Browse files Browse the repository at this point in the history
  • Loading branch information
lougierismonin committed Jan 14, 2021
1 parent 291c885 commit c272121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c272121

Please sign in to comment.