Skip to content

Commit

Permalink
Fix ClosePin() (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Sep 7, 2022
1 parent 641300e commit 162ca3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions System.Device.Gpio/GpioController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ public void ClosePin(int pinNumber)
{
((GpioPinBundle)s_GpioPins[i]).GpioPin.Dispose();

// remove from array
s_GpioPins.RemoveAt(i);

// done here
return;
}
Expand Down

0 comments on commit 162ca3b

Please sign in to comment.