mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Fixes #2425
This commit is contained in:
parent
5bf370295d
commit
d4544f11f5
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue