Skip to content

Commit 368351b

Browse files
committed
Remove nonfunctional usermod validation
Non-platform-safe usermods are filtered out before validation runs; so this check is no longer functional.
1 parent f9bfcce commit 368351b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pio-scripts/validate_modules.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,6 @@ def validate_map_file(source, target, env):
5656
# Identify the WLED module builders, set by load_usermods.py
5757
module_lib_builders = env['WLED_MODULES']
5858

59-
# Filter/warn if an incompatible usermod was requested
60-
if env.GetProjectOption("custom_usermods","") == "*":
61-
# All usermods build; filter non-platform-OK modules
62-
module_lib_builders = [builder for builder in module_lib_builders if env.IsCompatibleLibBuilder(builder)]
63-
else:
64-
incompatible_builders = [builder for builder in module_lib_builders if not env.IsCompatibleLibBuilder(builder)]
65-
if incompatible_builders:
66-
secho(
67-
f"ERROR: Modules {[b.name for b in incompatible_builders]} are not compatible with this platform!",
68-
fg="red",
69-
err=True)
70-
Exit(1)
71-
7259
# Extract the values we care about
7360
modules = {Path(builder.build_dir).name: builder.name for builder in module_lib_builders}
7461
secho(f"INFO: {len(modules)} libraries linked as WLED optional/user modules")

0 commit comments

Comments
 (0)