Some refactoring in the new Wizard
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user