Move ppm related options into own struct

This allows to have the ppm related options in a union with a other module protocol specific options for the multi module.
This commit is contained in:
Arne Schwabe
2016-03-29 21:41:14 +02:00
parent 9762656ad0
commit c788ad6add
9 changed files with 53 additions and 45 deletions
+3 -3
View File
@@ -871,9 +871,9 @@ void ConvertModel_216_to_217(ModelData & model)
for (int j=0; j<NUM_CHNOUT; j++) {
newModel.moduleData[i].failsafeChannels[j] = oldModel.moduleData[i].failsafeChannels[j];
}
newModel.moduleData[i].ppmDelay = oldModel.moduleData[i].ppmDelay;
newModel.moduleData[i].ppmFrameLength = oldModel.moduleData[i].ppmFrameLength;
newModel.moduleData[i].ppmPulsePol = oldModel.moduleData[i].ppmPulsePol;
newModel.moduleData[i].ppm.delay = oldModel.moduleData[i].ppmDelay;
newModel.moduleData[i].ppm.frameLength = oldModel.moduleData[i].ppmFrameLength;
newModel.moduleData[i].ppm.pulsePol = oldModel.moduleData[i].ppmPulsePol;
}
#if defined(PCBTARANIS)