Skip to content

Commit bb47a98

Browse files
author
Lance Leavitt
committed
11 Accounting for quickpin
1 parent 2c9d31f commit bb47a98

File tree

1 file changed

+4
-0
lines changed
  • src/main/pythontemplates

1 file changed

+4
-0
lines changed

src/main/pythontemplates/pog.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ except OSError as e:
2020
print("starting keyboard %s (%s)" % (config["name"], config["id"]))
2121
2222
def pinValid(pin):
23+
if pin == "":
24+
return False
25+
if config["pinPrefix"] == "quickpin":
26+
pin = f'{eval(pin)}'
2327
if pin in [f'board.{alias}' for alias in dir(board)]:
2428
return True
2529
else:

0 commit comments

Comments
 (0)