Disable PPM/serial in builds as needed

This commit is contained in:
Ben Lye 2020-09-13 13:40:34 +01:00 committed by Ben Lye
parent 5639def6fb
commit 313b03fb84

View File

@ -106,6 +106,7 @@ before_install:
printf "\n\e[33;1mBuilding multi-stm-erskytx-aetr-inv-v$MULTI_VERSION.bin\e[0m"; printf "\n\e[33;1mBuilding multi-stm-erskytx-aetr-inv-v$MULTI_VERSION.bin\e[0m";
exitcode=0; exitcode=0;
opt_enable CHECK_FOR_BOOTLOADER; opt_enable CHECK_FOR_BOOTLOADER;
opt_disable ENABLE_PPM;
opt_enable $ALL_PROTOCOLS; opt_enable $ALL_PROTOCOLS;
opt_enable MULTI_STATUS; opt_enable MULTI_STATUS;
opt_disable MULTI_TELEMETRY; opt_disable MULTI_TELEMETRY;
@ -173,6 +174,8 @@ before_install:
exitcode=$((exitcode+$?)); exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-opentx-reta-noinv-v$MULTI_VERSION.bin; mv build/Multiprotocol.ino.bin ./binaries/multi-stm-opentx-reta-noinv-v$MULTI_VERSION.bin;
printf "\n\e[33;1mBuilding multi-stm-ppm-aetr-noinv-v$MULTI_VERSION.bin\e[0m"; printf "\n\e[33;1mBuilding multi-stm-ppm-aetr-noinv-v$MULTI_VERSION.bin\e[0m";
opt_enable ENABLE_PPM;
opt_disable ENABLE_SERIAL;
opt_replace RETA AETR; opt_replace RETA AETR;
opt_disable MULTI_STATUS; opt_disable MULTI_STATUS;
opt_disable MULTI_TELEMETRY; opt_disable MULTI_TELEMETRY;
@ -238,6 +241,7 @@ before_install:
elif [[ "$BOARD" == "multi4in1:STM32F1:multi5in1t18int" ]]; then elif [[ "$BOARD" == "multi4in1:STM32F1:multi5in1t18int" ]]; then
buildReleaseFiles(){ buildReleaseFiles(){
printf "\n\e[33;1mBuilding multi-t18int-opentx-aetr-noinv-v$MULTI_VERSION.bin\e[0m"; printf "\n\e[33;1mBuilding multi-t18int-opentx-aetr-noinv-v$MULTI_VERSION.bin\e[0m";
opt_disable ENABLE_PPM;
opt_disable INVERT_TELEMETRY; opt_disable INVERT_TELEMETRY;
exitcode=0; exitcode=0;
buildMulti; buildMulti;