Merge pull request #3744 from opentx/schwabe/multi_new_protocols

Add new protocols supported by the DIY Multi module
This commit is contained in:
Bertrand Songis
2016-09-05 22:14:27 +02:00
committed by GitHub
20 changed files with 104 additions and 56 deletions
+10 -2
View File
@@ -131,14 +131,22 @@ void setupPulsesMultimodule(uint8_t port)
if (type >= 15)
type = type + 1;
// 23 is again a FrSky protocol so shift again
if (type >= 23)
type = type + 1;
if (g_model.moduleData[port].multi.rfProtocol == MM_RF_PROTO_FRSKY) {
if(subtype == 1) {
if(subtype == MM_RF_FRSKY_SUBTYPE_D8) {
//D8
type = 3;
subtype = 0;
} else if (subtype == MM_RF_FRSKY_SUBTYPE_V8) {
//V8
type = 25;
subtype = 0;
} else {
type = 15;
if (subtype == 2) // D16 8ch
if (subtype == MM_RF_FRSKY_SUBTYPE_D16_8CH) // D16 8ch
subtype = 1;
else
subtype = 0; // D16