1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

SPLASH is now a compile option

This commit is contained in:
bsongis 2012-01-15 20:59:56 +00:00
parent 45d56d4efc
commit 50816ba01b
5 changed files with 28 additions and 1 deletions

View file

@ -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_pgOfs<subN) {
uint8_t b = 1-g_eeGeneral.disableSplashScreen;
lcd_puts_P(0, y,PSTR("Splash screen"));
@ -169,6 +175,7 @@ void menuProcSetup(uint8_t event)
}
if((y+=FH)>7*FH) return;
}subN++;
#endif
if(s_pgOfs<subN) {
uint8_t b = 1-g_eeGeneral.disableThrottleWarning;