From 3edec81b24e93242d397cec7199f9f818ed078fc Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 23 Aug 2019 09:57:38 +0200 Subject: [PATCH] fixes for X10 tests --- companion/src/firmwares/opentx/opentxeeprom.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index fdb1088f6..e59bfe0ef 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -73,8 +73,10 @@ inline int MAX_SWITCH_SLOTS(Board::Type board, int version) inline int MAX_SWITCHES_POSITION(Board::Type board, int version) { - if (version < 219 && IS_TARANIS_X7(board)) - return Boards::getCapability(board, Board::SwitchPositions) - 2*3; + if (version < 219) { + if (IS_TARANIS_X7(board) || IS_HORUS(board)) + return Boards::getCapability(board, Board::SwitchPositions) - 2*3; + } return Boards::getCapability(board, Board::SwitchPositions); } @@ -252,7 +254,7 @@ class SourcesConversionTable: public ConversionTable { } } - for (int i=0; i