From cc2fcce5595813879368ad768a329d4ced4d8dba Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Sat, 7 Nov 2015 08:35:47 +0100 Subject: [PATCH] Hide D8/LR12 in companion when eu firmware option is selected --- companion/src/firmwares/opentx/opentxinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/firmwares/opentx/opentxinterface.cpp b/companion/src/firmwares/opentx/opentxinterface.cpp index 97b9e1598..6c87ca11e 100644 --- a/companion/src/firmwares/opentx/opentxinterface.cpp +++ b/companion/src/firmwares/opentx/opentxinterface.cpp @@ -824,9 +824,10 @@ int OpenTxFirmware::isAvailable(PulsesProtocol proto, int port) switch (proto) { case PULSES_OFF: case PULSES_PXX_XJT_X16: + return 1; case PULSES_PXX_XJT_D8: case PULSES_PXX_XJT_LR12: - return 1; + return id.contains("eu") ? 0 : 1; case PULSES_PPM: return id.contains("internalppm") ? 1 : 0; default: