Fixes for targets without external module
This commit is contained in:
committed by
Raphael Coeffic
parent
56eb564b86
commit
66e08da1b8
@@ -797,13 +797,14 @@ inline void resetAccessAuthenticationCount()
|
||||
|
||||
inline void resetAfhdsOptions(uint8_t moduleIdx)
|
||||
{
|
||||
auto & data = g_model.moduleData[moduleIdx];
|
||||
#if defined(AFHDS3)
|
||||
auto & data = g_model.moduleData[moduleIdx];
|
||||
data.subType = FLYSKY_SUBTYPE_AFHDS3;
|
||||
data.afhds3.emi = 2; // FCC
|
||||
data.afhds3.telemetry = 1;
|
||||
data.afhds3.phyMode = 0;
|
||||
#elif defined(AFHDS2A)
|
||||
auto & data = g_model.moduleData[moduleIdx];
|
||||
data.subType = FLYSKY_SUBTYPE_AFHDS2A;
|
||||
data.flysky.setDefault();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user