From 50816ba01b123e653df14b7a0565e50dbe4140ee Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 15 Jan 2012 20:59:56 +0000 Subject: [PATCH] SPLASH is now a compile option --- src/Makefile | 7 +++++++ src/general_menus.cpp | 9 ++++++++- src/gruvin9x.cpp | 8 ++++++++ src/gruvin9x.h | 3 +++ src/simpgmspace.cpp | 2 ++ 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 26a3059cd..941b5b418 100644 --- a/src/Makefile +++ b/src/Makefile @@ -74,6 +74,9 @@ USART1 = STD # Values = STD, MOD1 PPMIN = STD +# SPLASH on START +SPLASH = YES + # BATT voltage algorithm. Values = BANDGAP, UNSTABLE_BANDGAP BATT = BANDGAP @@ -216,6 +219,10 @@ ifeq ($(NAVIGATION), POTS) CPPDEFS += -DNAVIGATION_POT1 -DNAVIGATION_POT2 -DNAVIGATION_POT3 endif +ifneq ($(SPLASH), NO) + CPPDEFS += -DSPLASH +endif + MODS = ifeq ($(PCB), STD) diff --git a/src/general_menus.cpp b/src/general_menus.cpp index 3e27d4d74..fda04255d 100644 --- a/src/general_menus.cpp +++ b/src/general_menus.cpp @@ -58,8 +58,13 @@ MenuFuncP_PROGMEM APM menuTabDiag[] = { void menuProcSetup(uint8_t event) { +#ifdef SPLASH #define COUNT_ITEMS 19 -#undef PARAM_OFS +#else +#define COUNT_ITEMS 18 +#endif + +#undef PARAM_OFS #define PARAM_OFS 17*FW SIMPLE_MENU("RADIO SETUP", menuTabDiag, e_Setup, COUNT_ITEMS+1); @@ -158,6 +163,7 @@ void menuProcSetup(uint8_t event) if((y+=FH)>7*FH) return; }subN++; +#ifdef SPLASH if(s_pgOfs7*FH) return; }subN++; +#endif if(s_pgOfs