From 35ba4b68b19e2b627bc9ae84dae74d55f0ce4e0b Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 5 Oct 2014 19:31:31 +0200 Subject: [PATCH] Companion bug in model import fixed (after changing radio in the same session) --- companion/src/firmwares/opentx/opentxeeprom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index d72916984..2c50d613a 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -203,8 +203,8 @@ class SourcesConversionTable: public ConversionTable { if (IS_TARANIS(board) && version >= 216) { for (int i=0; i<32; i++) addConversion(RawSource(SOURCE_TYPE_VIRTUAL_INPUT, i), val++); - for (int i=0; igetCapability(LuaScripts); i++) { - for (int j=0; jgetCapability(LuaOutputsPerScript); j++) { + for (int i=0; i<7; i++) { + for (int j=0; j<6; j++) { addConversion(RawSource(SOURCE_TYPE_LUA_OUTPUT, i*16+j), val++); } }