mirror of
https://github.com/wled/WLED.git
synced 2025-04-19 12:27:17 +00:00
13 lines
356 B
Python
13 lines
356 B
Python
Import('env')
|
|
|
|
|
|
usermods = env.GetProjectOption("custom_usermods","").split()
|
|
# Check for dependencies
|
|
if "Temperature" in usermods:
|
|
env.Append(CPPDEFINES=[("USERMOD_DALLASTEMPERATURE")])
|
|
elif "sht" in usermods:
|
|
env.Append(CPPDEFINES=[("USERMOD_SHT")])
|
|
else:
|
|
raise RuntimeError("PWM_fan usermod requires Temperature or sht to be enabled")
|
|
|