Fix x10 compilation
This commit is contained in:
@@ -513,6 +513,7 @@ class ModuleWindow : public Window {
|
||||
FormField::link(previousField, moduleChoice);
|
||||
|
||||
// Module parameters
|
||||
#if defined (PCBNV14)
|
||||
if (isModuleFlysky(moduleIdx)) {
|
||||
grid.nextLine();
|
||||
rfChoice = new Choice(this, grid.getFieldSlot(), STR_FLYSKY_PROTOCOLS, 0, 3,
|
||||
@@ -524,13 +525,14 @@ class ModuleWindow : public Window {
|
||||
//TODO onFlySkyReceiverSetPulse(INTERNAL_MODULE, newValue);
|
||||
});
|
||||
|
||||
#if defined (PCBNV14)
|
||||
|
||||
grid.nextLine();
|
||||
new StaticText(this, grid.getLabelSlot(true), STR_FLYSKY_TELEMETRY);
|
||||
new CheckBox(this, grid.getFieldSlot(), GET_SET_DEFAULT(g_model.rssiAlarms.flysky_telemetry));
|
||||
#endif
|
||||
}
|
||||
else if (isModuleXJT(moduleIdx)) {
|
||||
else
|
||||
#endif
|
||||
if (isModuleXJT(moduleIdx)) {
|
||||
auto xjtChoice = new Choice(this, grid.getFieldSlot(2, 1), STR_XJT_ACCST_RF_PROTOCOLS, MODULE_SUBTYPE_PXX1_OFF, MODULE_SUBTYPE_PXX1_ACCST_LR12,
|
||||
GET_SET_DEFAULT(g_model.moduleData[moduleIdx].rfProtocol));
|
||||
xjtChoice->setAvailableHandler([](int index) {
|
||||
|
||||
Reference in New Issue
Block a user