fix: Allow compile without multimodule support (#3750)

This commit is contained in:
3djc
2023-07-03 19:07:02 +10:00
committed by GitHub
parent 1820ff8d5c
commit 8f0ad3fca8
6 changed files with 20 additions and 8 deletions
+5 -1
View File
@@ -50,6 +50,9 @@
#include "hitec.h"
#include "hott.h"
#include "multi.h"
#endif
#if defined(MULTIMODULE) || defined(PPM)
#include "mlink.h"
#endif
@@ -110,6 +113,7 @@ rxStatStruct *getRxStatLabels() {
uint8_t moduleType = g_model.moduleData[moduleToUse].type;
switch(moduleType) {
#if defined(MULTIMODULE)
case MODULE_TYPE_MULTIMODULE: {
uint8_t multiProtocol = g_model.moduleData[moduleToUse].multi.rfProtocol;
@@ -121,7 +125,7 @@ rxStatStruct *getRxStatLabels() {
}
}
break;
#endif
case MODULE_TYPE_PPM:
if(moduleState[moduleToUse].protocol == PROTOCOL_CHANNELS_PPM_MLINK) {
rxStat.label = STR_RXSTAT_LABEL_RQLY;