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:
parent
f2af6bf854
commit
1751a1a06c
6 changed files with 34 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue