File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def get_excluded_boards(base):
185
185
board_is_excluded = True
186
186
187
187
# 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 ())
189
189
find_module = re .search (re_pattern , contents )
190
190
if not find_module :
191
191
if base [module ]["default_value" ].isdigit ():
@@ -204,9 +204,7 @@ def get_excluded_boards(base):
204
204
]):
205
205
check_dependent_modules [module ] = base [module ]["default_value" ]
206
206
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"
210
208
211
209
if board_is_excluded :
212
210
if board_chip in base [module ]["excluded" ]:
You can’t perform that action at this time.
0 commit comments