Skip to content

Commit

Permalink
Update src/devices/Arduino/ArduinoGpioControllerDriver.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Wicher <[email protected]>
  • Loading branch information
pgrawehr and krwq authored Feb 22, 2021
1 parent fd1c144 commit 01df65c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/devices/Arduino/ArduinoGpioControllerDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,7 @@ protected override bool IsPinModeSupported(int pinNumber, PinMode mode)
}

var pinConfig = _supportedPinConfigurations.FirstOrDefault(x => x.Pin == pinNumber);
if (pinConfig == null || !pinConfig.PinModes.Contains(firmataMode))
{
return false;
}

return true;
return pinConfig != null && pinConfig.PinModes.Contains(firmataMode);
}

protected override PinValue Read(int pinNumber)
Expand Down

0 comments on commit 01df65c

Please sign in to comment.