[MULTI] Fix Frksy EU pulses actually send the right type

This commit is contained in:
Arne Schwabe
2017-01-31 07:48:58 +01:00
parent baa5929671
commit 7fb9aad61f
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -546,7 +546,9 @@ enum MMRFrskySubtypes {
MM_RF_FRSKY_SUBTYPE_D16,
MM_RF_FRSKY_SUBTYPE_D8,
MM_RF_FRSKY_SUBTYPE_D16_8CH,
MM_RF_FRSKY_SUBTYPE_V8
MM_RF_FRSKY_SUBTYPE_V8,
MM_RF_FRSKY_SUBTYPE_D16_LBT,
MM_RF_FRSKY_SUBTYPE_D16_LBT_8CH
};
#define HAS_RF_PROTOCOL_FAILSAFE(rf) ((rf) == RF_PROTO_X16)
+6 -2
View File
@@ -158,9 +158,13 @@ void setupPulsesMultimodule(uint8_t port)
} else {
type = 15;
if (subtype == MM_RF_FRSKY_SUBTYPE_D16_8CH) // D16 8ch
subtype = 1;
subtype = 1;
else if (subtype == MM_RF_FRSKY_SUBTYPE_D16)
subtype = 0; // D16
else if (subtype == MM_RF_FRSKY_SUBTYPE_D16_LBT)
subtype = 2;
else
subtype = 0; // D16
subtype = 3; // MM_RF_FRSKY_SUBTYPE_D16_LBT_8CH
}
}