Skip to content

Commit

Permalink
Merge pull request #4938 from tonhuisman/feature/IR-enable-all-protoc…
Browse files Browse the repository at this point in the history
…ols-for-ESP32-builds

[IR] Enable all protocols for ESP32 IR builds
  • Loading branch information
TD-er authored Feb 11, 2024
2 parents 64876cf + d274380 commit 6cb57ad
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/pio/ir_build_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
ir_defines=["-include src/CustomIR.h"]
env.Append(BUILD_FLAGS=ir_defines)
else:
if os.path.isfile('src/CustomIR-sample.h'):
print(" IR build detected. Using CustomIR-sample.h for defaults.")
ir_defines=["-include src/CustomIR-sample.h"] # Use as default settings
env.Append(BUILD_FLAGS=ir_defines)
# For all ESP32 IR builds enable all IR protocols, except when CustomIR.h is available (above)
if "_ESP32" in pioenv:
print("\n ESP32 IR build. See CustomIR-sample.h how to customize included IR protocols.\n Default: All protocols enabled.\n")
else:
if os.path.isfile('src/CustomIR-sample.h'):
print(" IR build detected. Using CustomIR-sample.h for defaults.")
ir_defines=["-include src/CustomIR-sample.h"] # Use as default settings
env.Append(BUILD_FLAGS=ir_defines)

0 comments on commit 6cb57ad

Please sign in to comment.