Skip to content

Commit 86e885c

Browse files
committed
handle module exclusion when the default is to not include a module
1 parent 7378744 commit 86e885c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/shared_bindings_matrix.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ def get_excluded_boards(base_json):
106106
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
107107
find_module = re.search(re_pattern, contents)
108108
if not find_module:
109+
# check if default inclusion is off ('0'). if the board doesn't
110+
# have it explicitly enabled, its excluded.
111+
if base_json[module]["default_value"] == "0":
112+
base_json[module]["excluded"].append(entry.name)
109113
continue
110114
if (find_module.group(1) == "0" and
111115
find_module.group(1) != base_json[module]["default_value"]):

0 commit comments

Comments
 (0)