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.telemetry = 1;
|
||||
data.afhds3.phyMode = 0;
|
||||
#elif defined(AFHDS2A)
|
||||
#elif defined(AFHDS2)
|
||||
auto & data = g_model.moduleData[moduleIdx];
|
||||
data.subType = FLYSKY_SUBTYPE_AFHDS2A;
|
||||
data.flysky.setDefault();
|
||||
|
||||
@@ -410,7 +410,7 @@ static void enablePulsesInternalModule(uint8_t protocol)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(INTERNAL_MODULE_AFHDS2A) && defined(AFHDS2A)
|
||||
#if defined(INTERNAL_MODULE_AFHDS2A) && defined(AFHDS2)
|
||||
case PROTOCOL_CHANNELS_AFHDS2A:
|
||||
internalModuleContext = Afhds2InternalDriver.init(INTERNAL_MODULE);
|
||||
internalModuleDriver = &Afhds2InternalDriver;
|
||||
|
||||
Reference in New Issue
Block a user