1 parent 7378744 commit 86e885cCopy full SHA for 86e885c
1 file changed
docs/shared_bindings_matrix.py
@@ -106,6 +106,10 @@ def get_excluded_boards(base_json):
106
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
107
find_module = re.search(re_pattern, contents)
108
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)
113
continue
114
if (find_module.group(1) == "0" and
115
find_module.group(1) != base_json[module]["default_value"]):
0 commit comments