From 1512266eace2e4a59b8d8947536c9bba1d2cf81d Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 2 Dec 2016 22:15:10 +0100 Subject: [PATCH] =?UTF-8?q?[Companion]=C2=A0Horus=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- companion/src/eeprominterface.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/companion/src/eeprominterface.cpp b/companion/src/eeprominterface.cpp index b2633698b..28efdaf91 100644 --- a/companion/src/eeprominterface.cpp +++ b/companion/src/eeprominterface.cpp @@ -1399,7 +1399,7 @@ void ModelData::clear() moduleData[1].ppm.delay = 300; moduleData[2].ppm.delay = 300; int board = GetEepromInterface()->getBoard(); - if (IS_TARANIS(board)) { + if (IS_TARANIS(board) || IS_HORUS(board)) { moduleData[0].protocol = PULSES_PXX_XJT_X16; moduleData[1].protocol = PULSES_OFF; } @@ -1469,7 +1469,8 @@ QString removeAccents(const QString & str) void ModelData::setDefaultInputs(const GeneralSettings & settings) { - if (IS_TARANIS(GetEepromInterface()->getBoard())) { + BoardEnum board = GetEepromInterface()->getBoard(); + if (IS_ARM(board)) { for (int i=0; ichn = i; @@ -1483,7 +1484,8 @@ void ModelData::setDefaultInputs(const GeneralSettings & settings) void ModelData::setDefaultMixes(const GeneralSettings & settings) { - if (IS_TARANIS(GetEepromInterface()->getBoard())) { + BoardEnum board = GetEepromInterface()->getBoard(); + if (IS_ARM(board)) { setDefaultInputs(settings); } @@ -1491,7 +1493,7 @@ void ModelData::setDefaultMixes(const GeneralSettings & settings) MixData * mix = &mixData[i]; mix->destCh = i+1; mix->weight = 100; - if (IS_TARANIS(GetEepromInterface()->getBoard())) { + if (IS_ARM(board)) { mix->srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, i); } else {