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:
parent
ea5401084c
commit
fbc3bac6d3
3 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue