1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00
This commit is contained in:
bsongis 2015-07-11 10:37:55 +02:00
parent 5bf370295d
commit d4544f11f5
2 changed files with 5 additions and 1 deletions

View file

@ -835,6 +835,7 @@ class ModuleData {
ModuleData() { clear(); }
unsigned int modelId;
int protocol;
int subprotocol;
unsigned int channelsStart;
int channelsCount; // 0=8 channels
unsigned int failsafeMode;

View file

@ -584,7 +584,6 @@ class SourceField: public ConversionField< UnsignedField<N> > {
virtual void beforeExport()
{
if (source.type == SOURCE_TYPE_TELEMETRY) qDebug() << source.type << source.index;
_source = source.toValue();
ConversionField< UnsignedField<N> >::beforeExport();
}
@ -3225,6 +3224,10 @@ void OpenTxModelData::afterImport()
}
}
if (IS_TARANIS(board) && modelData.moduleData[0].protocol == 0) {
modelData.moduleData[0].protocol = PXX_XJT_X16;
}
for (int module=0; module<3; module++) {
if (modelData.moduleData[module].protocol == PXX_XJT_X16 || modelData.moduleData[module].protocol == LP45) {
if (subprotocols[module] >= 0)