Datacopy update

This commit is contained in:
3djc
2019-04-03 12:27:05 +02:00
parent 5a855df928
commit 74b63eca0b
+9 -11
View File
@@ -1,4 +1,4 @@
//This file was auto-generated by generate_datacopy.py script on Tue Mar 19 19:58:50 2019. Do not edit this file!
//This file was auto-generated by generate_datacopy.py script on Wed Apr 3 12:26:41 2019. Do not edit this file!
@@ -179,7 +179,7 @@ template <class A, class B>
void copyTelemetrySensor(A * dest, B * src)
{
dest->id = src->id;
dest->instance = src->instance;
copyTelemetrySensor_frskyInstance(&dest->frskyInstance, &src->frskyInstance);
memcpy(dest->label, src->label, sizeof(dest->label));
dest->type = src->type;
dest->unit = src->unit;
@@ -205,12 +205,6 @@ void copyTrainerModuleData(A * dest, B * src)
dest->pulsePol = src->pulsePol;
}
template <class A, class B>
void copyReceiverData(A * dest, B * src)
{
memcpy(dest->name, src->name, sizeof(dest->name));
}
template <class A, class B>
void copyModuleData(A * dest, B * src)
{
@@ -284,9 +278,6 @@ void copyModelData(A * dest, B * src)
for (int i=0; i<2; i++) {
copyModuleData(&dest->moduleData[i], &src->moduleData[i]);
}
for (int i=0; i<10; i++) {
copyReceiverData(&dest->receiverData[i], &src->receiverData[i]);
}
memcpy(dest->failsafeChannels, src->failsafeChannels, sizeof(dest->failsafeChannels));
copyTrainerModuleData(&dest->trainerData, &src->trainerData);
memcpy(dest->modelRegistrationID, src->modelRegistrationID, sizeof(dest->modelRegistrationID));
@@ -349,6 +340,13 @@ void copyCustomFunctionData_all(A * dest, B * src)
dest->param = src->param;
}
template <class A, class B>
void copyTelemetrySensor_frskyInstance(A * dest, B * src)
{
dest->physID = src->physID;
dest->rxIndex = src->rxIndex;
}
template <class A, class B>
void copyModuleData_r9m(A * dest, B * src)
{