Skip to content

Commit fab80f4

Browse files
committed
Fix up usermod dep checking scripts
1 parent 1cd3a97 commit fab80f4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

usermods/PWM_fan/setup_deps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
env.Append(CPPDEFINES=[("USERMOD_DALLASTEMPERATURE")])
88
elif "sht" in usermods:
99
env.Append(CPPDEFINES=[("USERMOD_SHT")])
10-
else:
10+
elif "PWM_fan" in usermods: # The script can be run if this module was previously selected
1111
raise RuntimeError("PWM_fan usermod requires Temperature or sht to be enabled")
12-

usermods/seven_segment_display_reloaded/setup_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# Check for partner usermods
66
if "SN_Photoresistor" in usermods:
77
env.Append(CPPDEFINES=[("USERMOD_SN_PHOTORESISTOR")])
8-
if "BH1750_v2" in usermods:
8+
if any(mod in ("BH1750_v2", "BH1750") for mod in usermods):
99
env.Append(CPPDEFINES=[("USERMOD_BH1750")])

0 commit comments

Comments
 (0)