Browse Source
Remove the redundant pin name validation (#13251)
* remove the redundant pin name validation
* fix submodules
pull/13302/head
Zach White
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
7 deletions
-
lib/python/qmk/info.py
|
|
@ -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): |
|
|
|