mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Also backup members inside unions,
the code is a bit more complicated since unions can have structs or simple types.
This commit is contained in:
parent
ecff71b044
commit
dd76e9d8bf
2 changed files with 66 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
//This file was auto-generated by generate_datacopy.py script on Wed Mar 16 20:12:19 2016. Do not edit this file!
|
||||
//This file was auto-generated by generate_datacopy.py script on Fri Mar 25 14:01:12 2016. Do not edit this file!
|
||||
|
||||
|
||||
|
||||
|
@ -77,6 +77,7 @@ void copyCustomFunctionData(A * dest, B * src)
|
|||
{
|
||||
dest->swtch = src->swtch;
|
||||
dest->func = src->func;
|
||||
copyCustomFunctionData_all(&dest->CustomFunctionData_all, &src->CustomFunctionData_all);
|
||||
dest->active = src->active;
|
||||
}
|
||||
|
||||
|
@ -305,3 +306,11 @@ void copyRadioData(A * dest, B * src)
|
|||
dest->potsConfig = src->potsConfig;
|
||||
}
|
||||
|
||||
template <class A, class B>
|
||||
void copyCustomFunctionData_all(A * dest, B * src)
|
||||
{
|
||||
dest->val = src->val;
|
||||
dest->mode = src->mode;
|
||||
dest->param = src->param;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue