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

Unused FSPLASH option removed

This commit is contained in:
Bertrand Songis 2018-08-05 14:22:23 +02:00
parent de8f9ebac9
commit 94f9eb7a35
5 changed files with 5 additions and 18 deletions

View file

@ -612,8 +612,6 @@ PACK(struct TrainerData {
#if defined(PCBHORUS)
#define SPLASH_MODE uint8_t splashSpares:3
#elif defined(FSPLASH)
#define SPLASH_MODE uint8_t splashMode:3
#else
#define SPLASH_MODE int8_t splashMode:3
#endif

View file

@ -36,7 +36,7 @@ const unsigned char sticks[] = {
value = editChoice(RADIO_SETUP_2ND_COLUMN, y, label, NULL, tmp, -2, +2, attr, event); \
}
#if defined(SPLASH) && !defined(FSPLASH)
#if defined(SPLASH)
#define CASE_SPLASH_PARAM(x) x,
#else
#define CASE_SPLASH_PARAM(x)
@ -451,7 +451,7 @@ void menuRadioSetup(event_t event)
break;
#endif
#if defined(SPLASH) && !defined(FSPLASH)
#if defined(SPLASH)
case ITEM_SETUP_DISABLE_SPLASH:
{
lcdDrawTextAlignedLeft(y, STR_SPLASHSCREEN);

View file

@ -36,7 +36,7 @@ const unsigned char sticks[] = {
value = editChoice(RADIO_SETUP_2ND_COLUMN, y, label, NULL, tmp, -2, +2, attr, event); \
}
#if defined(SPLASH) && !defined(FSPLASH)
#if defined(SPLASH)
#define CASE_SPLASH_PARAM(x) x,
#else
#define CASE_SPLASH_PARAM(x)
@ -395,7 +395,7 @@ void menuRadioSetup(event_t event)
break;
#endif
#if defined(SPLASH) && !defined(FSPLASH)
#if defined(SPLASH)
case ITEM_SETUP_DISABLE_SPLASH:
{
lcdDrawTextAlignedLeft(y, STR_SPLASHSCREEN);

View file

@ -776,17 +776,8 @@ void doSplash()
getADC();
#if defined(FSPLASH)
// Splash is forced, we can't skip it
if (!(g_eeGeneral.splashMode & 0x04)) {
#endif
if (keyDown() || inputsMoved()) return;
#if defined(FSPLASH)
}
#endif
#if defined(PWR_BUTTON_PRESS)
uint32_t pwr_check = pwrCheck();
if (pwr_check == e_power_off) {

View file

@ -365,8 +365,6 @@ extern uint8_t channel_order(uint8_t x);
#if defined(PCBHORUS)
#define SPLASH_TIMEOUT 0 /* we use the splash duration to load stuff from the SD */
#elif defined(FSPLASH)
#define SPLASH_TIMEOUT (g_eeGeneral.splashMode == 0 ? 60000/*infinite=10mn*/ : ((4*100) * (g_eeGeneral.splashMode & 0x03)))
#elif defined(PCBTARANIS)
#define SPLASH_TIMEOUT (g_eeGeneral.splashMode==-4 ? 1500 : (g_eeGeneral.splashMode<=0 ? (400-g_eeGeneral.splashMode*200) : (400-g_eeGeneral.splashMode*100)))
#else