1
0
Fork 0
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:
bsongis 2014-03-13 08:44:50 +01:00
parent 13e998ec2d
commit e0582cd398
8 changed files with 72 additions and 48 deletions

View file

@ -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())) {