mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
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:
parent
9762656ad0
commit
c788ad6add
9 changed files with 53 additions and 45 deletions
|
@ -1,4 +1,4 @@
|
|||
//This file was auto-generated by generate_datacopy.py script on Fri Mar 25 14:17:31 2016. Do not edit this file!
|
||||
//This file was auto-generated by generate_datacopy.py script on Fri Mar 25 14:26:09 2016. Do not edit this file!
|
||||
|
||||
|
||||
|
||||
|
@ -194,10 +194,7 @@ void copyModuleData(A * dest, B * src)
|
|||
dest->failsafeMode = src->failsafeMode;
|
||||
dest->invertedSerial = src->invertedSerial;
|
||||
memcpy(dest->failsafeChannels, src->failsafeChannels, sizeof(dest->failsafeChannels));
|
||||
dest->ppmDelay = src->ppmDelay;
|
||||
dest->ppmPulsePol = src->ppmPulsePol;
|
||||
dest->ppmOutputType = src->ppmOutputType;
|
||||
dest->ppmFrameLength = src->ppmFrameLength;
|
||||
copyModuleData_ppm(&dest->ppm, &src->ppm);
|
||||
}
|
||||
|
||||
template <class A, class B>
|
||||
|
@ -338,3 +335,12 @@ void copyTelemetrySensor_custom(A * dest, B * src)
|
|||
dest->ratio = src->ratio;
|
||||
dest->offset = src->offset;
|
||||
}
|
||||
|
||||
template <class A, class B>
|
||||
void copyModuleData_ppm(A * dest, B * src)
|
||||
{
|
||||
dest->delay = src->delay;
|
||||
dest->pulsePol = src->pulsePol;
|
||||
dest->outputType = src->outputType;
|
||||
dest->frameLength = src->frameLength;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue