Skip to content

Commit 162ca3b

Browse files
authored
Fix ClosePin() (#53)
1 parent 641300e commit 162ca3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

System.Device.Gpio/GpioController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public void ClosePin(int pinNumber)
121121
{
122122
((GpioPinBundle)s_GpioPins[i]).GpioPin.Dispose();
123123

124+
// remove from array
125+
s_GpioPins.RemoveAt(i);
126+
124127
// done here
125128
return;
126129
}

0 commit comments

Comments
 (0)