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
+1 -1
View File
@@ -147,7 +147,7 @@ void MultiModuleStatus::getStatusString(char *statusText)
{
if (get_tmr10ms() - lastUpdate > 200) {
#if defined(PCBTARANIS) || defined(PCBHORUS)
if (g_model.moduleData[INTERNAL_MODULE].rfProtocol != RF_PROTO_OFF)
if (IS_INTERNAL_MODULE_ENABLED())
strcpy(statusText, STR_DISABLE_INTERNAL);
else
#endif