1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00

Cosmetics

This commit is contained in:
Andre Bernet 2016-07-19 11:12:08 +02:00
parent a11db7d73f
commit 789326d2cd

View file

@ -116,10 +116,10 @@ void setupPulsesMultimodule(uint8_t port)
// byte 1+2, protocol information // byte 1+2, protocol information
int type = g_model.moduleData[port].multi.rfProtocol +1; int type = g_model.moduleData[port].multi.rfProtocol + 1;
int subtype = g_model.moduleData[port].subType; int subtype = g_model.moduleData[port].subType;
uint8_t protoByte=0; uint8_t protoByte = 0;
if (moduleFlag[port] == MODULE_BIND) if (moduleFlag[port] == MODULE_BIND)
protoByte |= MULTI_SEND_BIND; protoByte |= MULTI_SEND_BIND;
else if (moduleFlag[port] == MODULE_RANGECHECK) else if (moduleFlag[port] == MODULE_RANGECHECK)
@ -128,8 +128,8 @@ void setupPulsesMultimodule(uint8_t port)
// rfProtocol // rfProtocol
// 15 for Multimodule is FrskyX or D16 which we map as a subprotocol of 3 (FrSky) // 15 for Multimodule is FrskyX or D16 which we map as a subprotocol of 3 (FrSky)
// all protos > frskyx are therefore also off by one // all protos > frskyx are therefore also off by one
if (type >=15) if (type >= 15)
type= type +1; type = type + 1;
if (g_model.moduleData[port].multi.rfProtocol == MM_RF_PROTO_FRSKY) { if (g_model.moduleData[port].multi.rfProtocol == MM_RF_PROTO_FRSKY) {
if(subtype == 1) { if(subtype == 1) {
@ -138,10 +138,10 @@ void setupPulsesMultimodule(uint8_t port)
subtype = 0; subtype = 0;
} else { } else {
type = 15; type = 15;
if (subtype==2) // D16 8ch if (subtype == 2) // D16 8ch
subtype=1; subtype = 1;
else else
subtype=0; // D16 subtype = 0; // D16
} }
} }