Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed2d94c

Browse files
authored
Merge pull request adafruit#2543 from pewpew-game/support-matrix
Fix entry overrides in support matrix generation
2 parents 1daac3a + e1840f6 commit ed2d94c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/shared_bindings_matrix.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def get_excluded_boards(base):
185185
board_is_excluded = True
186186

187187
# check if module is specifically disabled for this board
188-
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
188+
re_pattern = r"CIRCUITPY_{}\s=\s(\w)".format(module.upper())
189189
find_module = re.search(re_pattern, contents)
190190
if not find_module:
191191
if base[module]["default_value"].isdigit():
@@ -204,9 +204,7 @@ def get_excluded_boards(base):
204204
]):
205205
check_dependent_modules[module] = base[module]["default_value"]
206206
else:
207-
if (find_module.group(1) == "0" and
208-
find_module.group(1) != base[module]["default_value"]):
209-
board_is_excluded = True
207+
board_is_excluded = find_module.group(1) == "0"
210208

211209
if board_is_excluded:
212210
if board_chip in base[module]["excluded"]:

0 commit comments

Comments
 (0)