[Taranis] DEFAULT_MODE Makefile option added for FrSky production in Mode 1 / Mode 2

This commit is contained in:
bsongis@gmail.com
2013-05-13 13:30:05 +00:00
parent 97402aa919
commit 67120bb5e7
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -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
+8
View File
@@ -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;