[MEGA2560] LCD options changed (only possible options are visible)
This commit is contained in:
@@ -1239,8 +1239,8 @@ void registerOpenTxFirmwares()
|
||||
|
||||
/* MEGA2560 board */
|
||||
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->addOptions(LCD_options);
|
||||
openTx->addOption("ST7565R", QObject::tr("ST7565R LCD or compatible"));
|
||||
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("nofp", QObject::tr("No flight modes"));
|
||||
|
||||
+2
-3
@@ -682,9 +682,8 @@ ifeq ($(PCB), MEGA2560)
|
||||
GUIGENERALSRC += gui/$(GUIDIRECTORY)/menu_general_diagkeys.cpp gui/$(GUIDIRECTORY)/menu_general_diaganas.cpp
|
||||
|
||||
# LCD driver
|
||||
# Values: ST7565R, ERC12864FSF, MULTIPLEX (none = ST7565P)
|
||||
LCD = ST7565R
|
||||
|
||||
# Values: ST7565P(default), ST7565R
|
||||
LCD = ST7565P
|
||||
ifeq ($(LCD), ST7565R)
|
||||
CPPDEFS += -DLCD_ST7565R
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user