Some refactoring in the new Wizard

This commit is contained in:
bsongis
2014-03-14 14:54:45 +01:00
parent 13e998ec2d
commit e0582cd398
8 changed files with 72 additions and 48 deletions
-19
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())) {