Possibility to disable PXX1 / PXX2 / CROSSFIRE

This commit is contained in:
Bertrand Songis
2019-02-09 12:43:05 +01:00
parent f9f37d75a7
commit f17212f9b7
9 changed files with 67 additions and 22 deletions
+10 -1
View File
@@ -528,6 +528,16 @@ bool isInternalModuleAvailable(int module)
bool isExternalModuleAvailable(int module)
{
#if !defined(PXX1)
if (module == MODULE_TYPE_XJT) {
return false;
}
#endif
#if !defined(PXX2)
if (module == MODULE_TYPE_XJT2) {
return false;
}
#endif
#if defined(CROSSFIRE)
if (module == MODULE_TYPE_CROSSFIRE && g_model.moduleData[INTERNAL_MODULE].type != MODULE_TYPE_NONE) {
return false;
@@ -554,7 +564,6 @@ bool isExternalModuleAvailable(int module)
#endif
return true;
}
bool isRfProtocolAvailable(int protocol)