[MEGA2560] LCD options changed (only possible options are visible)

This commit is contained in:
bsongis
2015-04-28 07:28:03 +02:00
parent 31820a0520
commit 8e2bc06623
2 changed files with 4 additions and 5 deletions
@@ -1239,8 +1239,8 @@ void registerOpenTxFirmwares()
/* MEGA2560 board */ /* MEGA2560 board */
openTx = new OpenTxFirmware("opentx-mega2560", QObject::tr("OpenTX for MEGA2560 board"), BOARD_MEGA2560); openTx = new OpenTxFirmware("opentx-mega2560", QObject::tr("OpenTX for MEGA2560 board"), BOARD_MEGA2560);
Option LCD_options[] = { { "LCD_ST7565P", QObject::tr("ST7565P LCD or compatible"), 0 }, { "LCD_ST7565R", QObject::tr("ST7565R LCD or compatible"), 0 }, { NULL } }; openTx->addOption("ST7565R", QObject::tr("ST7565R LCD or compatible"));
openTx->addOptions(LCD_options); openTx->addOption("heli", QObject::tr("Enable heli menu and cyclic mix support"));
openTx->addOption("heli", QObject::tr("Enable heli menu and cyclic mix support")); openTx->addOption("heli", QObject::tr("Enable heli menu and cyclic mix support"));
openTx->addOption("templates", QObject::tr("Enable TEMPLATES menu")); openTx->addOption("templates", QObject::tr("Enable TEMPLATES menu"));
openTx->addOption("nofp", QObject::tr("No flight modes")); openTx->addOption("nofp", QObject::tr("No flight modes"));
+2 -3
View File
@@ -682,9 +682,8 @@ ifeq ($(PCB), MEGA2560)
GUIGENERALSRC += gui/$(GUIDIRECTORY)/menu_general_diagkeys.cpp gui/$(GUIDIRECTORY)/menu_general_diaganas.cpp GUIGENERALSRC += gui/$(GUIDIRECTORY)/menu_general_diagkeys.cpp gui/$(GUIDIRECTORY)/menu_general_diaganas.cpp
# LCD driver # LCD driver
# Values: ST7565R, ERC12864FSF, MULTIPLEX (none = ST7565P) # Values: ST7565P(default), ST7565R
LCD = ST7565R LCD = ST7565P
ifeq ($(LCD), ST7565R) ifeq ($(LCD), ST7565R)
CPPDEFS += -DLCD_ST7565R CPPDEFS += -DLCD_ST7565R
endif endif