1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

Review handling of combine INTERNAL_PPM and MULTIMODULE (#4826)

* First attempt

* Fix

* Review IS_INTERNAL_MODULE_ENABLED() macro
This commit is contained in:
3djc 2017-04-23 10:10:43 +02:00 committed by Bertrand Songis
parent ea5401084c
commit fbc3bac6d3
3 changed files with 13 additions and 11 deletions

View file

@ -297,7 +297,11 @@ enum BeeperMode {
#endif
#if defined(PCBTARANIS) || defined(PCBHORUS)
#if defined(TARANIS_INTERNAL_PPM)
#define IS_INTERNAL_MODULE_ENABLED() (!(g_model.moduleData[INTERNAL_MODULE].rfProtocol == RF_PROTO_OFF && g_model.moduleData[INTERNAL_MODULE].type == MODULE_TYPE_XJT) && (g_model.moduleData[INTERNAL_MODULE].type != MODULE_TYPE_NONE))
#else
#define IS_INTERNAL_MODULE_ENABLED() (g_model.moduleData[INTERNAL_MODULE].rfProtocol != RF_PROTO_OFF)
#endif
#elif defined(PCBSKY9X)
#define IS_INTERNAL_MODULE_ENABLED() (false)
#endif