File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 10
10
ir_defines = ["-include src/CustomIR.h" ]
11
11
env .Append (BUILD_FLAGS = ir_defines )
12
12
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 )
17
21
You can’t perform that action at this time.
0 commit comments