Skip to content

Commit 6cb57ad

Browse files
authored
Merge pull request #4938 from tonhuisman/feature/IR-enable-all-protocols-for-ESP32-builds
[IR] Enable all protocols for ESP32 IR builds
2 parents 64876cf + d274380 commit 6cb57ad

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tools/pio/ir_build_check.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
ir_defines=["-include src/CustomIR.h"]
1111
env.Append(BUILD_FLAGS=ir_defines)
1212
else:
13-
if os.path.isfile('src/CustomIR-sample.h'):
14-
print(" IR build detected. Using CustomIR-sample.h for defaults.")
15-
ir_defines=["-include src/CustomIR-sample.h"] # Use as default settings
16-
env.Append(BUILD_FLAGS=ir_defines)
13+
# For all ESP32 IR builds enable all IR protocols, except when CustomIR.h is available (above)
14+
if "_ESP32" in pioenv:
15+
print("\n ESP32 IR build. See CustomIR-sample.h how to customize included IR protocols.\n Default: All protocols enabled.\n")
16+
else:
17+
if os.path.isfile('src/CustomIR-sample.h'):
18+
print(" IR build detected. Using CustomIR-sample.h for defaults.")
19+
ir_defines=["-include src/CustomIR-sample.h"] # Use as default settings
20+
env.Append(BUILD_FLAGS=ir_defines)
1721

0 commit comments

Comments
 (0)