Fixed AFHDS2 define
This commit is contained in:
committed by
Raphael Coeffic
parent
e31e3bb8be
commit
3d3bc64d30
@@ -803,7 +803,7 @@ inline void resetAfhdsOptions(uint8_t moduleIdx)
|
|||||||
data.afhds3.emi = 2; // FCC
|
data.afhds3.emi = 2; // FCC
|
||||||
data.afhds3.telemetry = 1;
|
data.afhds3.telemetry = 1;
|
||||||
data.afhds3.phyMode = 0;
|
data.afhds3.phyMode = 0;
|
||||||
#elif defined(AFHDS2A)
|
#elif defined(AFHDS2)
|
||||||
auto & data = g_model.moduleData[moduleIdx];
|
auto & data = g_model.moduleData[moduleIdx];
|
||||||
data.subType = FLYSKY_SUBTYPE_AFHDS2A;
|
data.subType = FLYSKY_SUBTYPE_AFHDS2A;
|
||||||
data.flysky.setDefault();
|
data.flysky.setDefault();
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ static void enablePulsesInternalModule(uint8_t protocol)
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(INTERNAL_MODULE_AFHDS2A) && defined(AFHDS2A)
|
#if defined(INTERNAL_MODULE_AFHDS2A) && defined(AFHDS2)
|
||||||
case PROTOCOL_CHANNELS_AFHDS2A:
|
case PROTOCOL_CHANNELS_AFHDS2A:
|
||||||
internalModuleContext = Afhds2InternalDriver.init(INTERNAL_MODULE);
|
internalModuleContext = Afhds2InternalDriver.init(INTERNAL_MODULE);
|
||||||
internalModuleDriver = &Afhds2InternalDriver;
|
internalModuleDriver = &Afhds2InternalDriver;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ add_definitions(-DPCBNV14 -DPCBFLYSKY -DAFHDS2_BAUDRATE=${PCB_RF_BAUD})
|
|||||||
add_definitions(-DBATTERY_CHARGE)
|
add_definitions(-DBATTERY_CHARGE)
|
||||||
|
|
||||||
# defines existing internal modules
|
# defines existing internal modules
|
||||||
set(INTERNAL_MODULES AFHDS2A AFHDS3 CACHE STRING "Internal modules")
|
set(INTERNAL_MODULES AFHDS2A;AFHDS3 CACHE STRING "Internal modules")
|
||||||
set(DEFAULT_INTERNAL_MODULE FLYSKY CACHE STRING "Default internal module")
|
set(DEFAULT_INTERNAL_MODULE FLYSKY CACHE STRING "Default internal module")
|
||||||
|
|
||||||
set(BITMAPS_TARGET nv14_bitmaps)
|
set(BITMAPS_TARGET nv14_bitmaps)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
#include "mlink.h"
|
#include "mlink.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MULTIMODULE) || defined(AFHDS2A) || defined(AFHDS3)
|
#if defined(MULTIMODULE) || defined(AFHDS2) || defined(AFHDS3)
|
||||||
#include "flysky_ibus.h"
|
#include "flysky_ibus.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
#include "mlink.h"
|
#include "mlink.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MULTIMODULE) || defined(AFHDS2A) || defined(AFHDS3)
|
#if defined(MULTIMODULE) || defined(AFHDS2) || defined(AFHDS3)
|
||||||
#include "flysky_ibus.h"
|
#include "flysky_ibus.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user