mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Some refactoring in the new Wizard
This commit is contained in:
parent
13e998ec2d
commit
e0582cd398
8 changed files with 72 additions and 48 deletions
|
@ -972,25 +972,6 @@ bool ModelData::isempty()
|
|||
return !used;
|
||||
}
|
||||
|
||||
void ModelData::importWizardData( unsigned int id, const WizMix mix )
|
||||
{
|
||||
clear();
|
||||
used = true;
|
||||
modelId = id+1;
|
||||
|
||||
// Safe copy model name
|
||||
strncpy ( name, mix.name, WIZ_MODEL_NAME_LENGTH);
|
||||
name[WIZ_MODEL_NAME_LENGTH] = 0;
|
||||
|
||||
for (int i=0; i<WIZ_MAX_CHANNELS; i++ ){
|
||||
Channel ch = mix.channel[i];
|
||||
if (ch.sourceDlg > 0){
|
||||
|
||||
//**** INSERT MIXER HERE ****
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ModelData::setDefaultMixes(GeneralSettings & settings)
|
||||
{
|
||||
if (IS_TARANIS(GetEepromInterface()->getBoard())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue