Skip to content

Commit

Permalink
Remove the redundant pin name validation (qmk#13251)
Browse files Browse the repository at this point in the history
* remove the redundant pin name validation

* fix submodules
  • Loading branch information
skullydazed authored and nhongooi committed Dec 5, 2021
1 parent 5004b7d commit 6413435
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ def _pin_name(pin):
elif pin == 'NO_PIN':
return None

elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit():
return pin

elif pin.startswith('LINE_PIN'):
return pin

raise ValueError(f'Invalid pin: {pin}')
return pin


def _extract_pins(pins):
Expand Down

0 comments on commit 6413435

Please sign in to comment.