[Taranis] DEFAULT_MODE Makefile option added for FrSky production in Mode 1 / Mode 2
This commit is contained in:
@@ -193,6 +193,10 @@ TTS = $(TRANSLATIONS)
|
||||
# Values = imperial, metric
|
||||
UNITS = METRIC
|
||||
|
||||
# Default Tx Mode
|
||||
# Values = NO / 1 / 2 / 3 / 4
|
||||
DEFAULT_MODE = NO
|
||||
|
||||
# EEPROM_PROGRESS_BAR
|
||||
# Values = YES, NO
|
||||
EEPROM_PROGRESS_BAR = NO
|
||||
@@ -681,6 +685,10 @@ ifeq ($(UNITS), IMPERIAL)
|
||||
CPPDEFS += -DIMPERIAL_UNITS
|
||||
endif
|
||||
|
||||
ifneq ($(DEFAULT_MODE), NO)
|
||||
CPPDEFS += -DDEFAULT_MODE=$(DEFAULT_MODE)
|
||||
endif
|
||||
|
||||
# If POTS are used for fields modification
|
||||
ifeq ($(NAVIGATION), POT1)
|
||||
CPPDEFS += -DNAVIGATION_POT1
|
||||
|
||||
@@ -372,6 +372,14 @@ void generalDefault()
|
||||
g_eeGeneral.vBatWarn = 90;
|
||||
#endif
|
||||
|
||||
#if defined(DEFAULT_MODE)
|
||||
g_eeGeneral.stickMode = DEFAULT_MODE-1;
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
g_eeGeneral.templateSetup = 17; /* TAER */
|
||||
#endif
|
||||
|
||||
#if !defined(CPUM64)
|
||||
g_eeGeneral.backlightMode = e_backlight_mode_both;
|
||||
g_eeGeneral.lightAutoOff = 2;
|
||||
|
||||
Reference in New Issue
Block a user