build.dsl: fix precondition check in Pins.

This commit is contained in:
whitequark 2019-06-06 20:40:49 +00:00
parent f26e612899
commit 12e8fe484d

View file

@ -18,7 +18,7 @@ class Pins:
.format(conn))
names = ["{}_{}:{}".format(conn_name, conn_number, name) for name in names]
if dir not in ("i", "o", "io"):
if dir not in ("i", "o", "io", "oe"):
raise TypeError("Direction must be one of \"i\", \"o\", \"oe\", or \"io\", not {!r}"
.format(dir))