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:
parent
de8f9ebac9
commit
94f9eb7a35
5 changed files with 5 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -759,7 +759,7 @@ void doSplash()
|
|||
drawSplash();
|
||||
|
||||
|
||||
#if defined(PCBSKY9X)
|
||||
#if defined(PCBSKY9X)
|
||||
tmr10ms_t curTime = get_tmr10ms() + 10;
|
||||
uint8_t contrast = 10;
|
||||
lcdSetRefVolt(contrast);
|
||||
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue