Force set AFHDS2A subType on NV14

This commit is contained in:
Raphael Coeffic
2021-09-19 16:17:47 +02:00
parent b0147a43d0
commit f7af8f1e98
+3 -1
View File
@@ -850,9 +850,11 @@ class ModuleWindow : public FormGroup {
rfChoice->setFocus(SET_FOCUS_DEFAULT);
});
#if defined(PCBNV14)
if (moduleIdx == INTERNAL_MODULE)
if (moduleIdx == INTERNAL_MODULE) {
g_model.moduleData[moduleIdx].subType = FLYSKY_SUBTYPE_AFHDS2A;
rfChoice->setAvailableHandler(
[](int v) { return v == FLYSKY_SUBTYPE_AFHDS2A; });
}
#endif
// TODO: