PPM internal module GUI added

This commit is contained in:
Cedric Marzer
2015-05-15 17:52:32 +02:00
parent 463e23f15b
commit a54e1605ba
6 changed files with 80 additions and 11 deletions
+14
View File
@@ -53,7 +53,21 @@ void setupPulses(unsigned int port)
switch (port) {
#if defined(PCBTARANIS)
case INTERNAL_MODULE:
#if defined(TARANIS_INTERNAL_PPM)
switch (g_model.internalModule) {
case MODULE_TYPE_PPM:
required_protocol = PROTO_PPM;
break;
case MODULE_TYPE_XJT:
required_protocol = PROTO_PXX;
break;
default:
required_protocol = PROTO_NONE;
break;
}
#else
required_protocol = g_model.moduleData[INTERNAL_MODULE].rfProtocol == RF_PROTO_OFF ? PROTO_NONE : PROTO_PXX;
#endif
break;
#endif