1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

Duplicated code removed

This commit is contained in:
bsongis 2014-04-05 08:28:06 +02:00
parent f2af6bf854
commit 1751a1a06c
6 changed files with 34 additions and 25 deletions

View file

@ -56,8 +56,8 @@ void WizMix::addMix(ModelData &model, Input input, int weight, int channel, int
MixData & mix = model.mixData[mixIndex++];
mix.destCh = channel+1;
if (isTaranis){
int source = settings.translateSource(input-1);
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, source, &model);
int channel = settings.getDefaultChannel(input-1);
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, channel, &model);
}
else
mix.srcRaw = RawSource(SOURCE_TYPE_STICK, input-1);