chore(radio): Cleanup startup code, fix throttle warning led color, startup haptic option (#4027)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "keys.h"
|
||||
#include "common/stdlcd/menus.h"
|
||||
#include "common/stdlcd/features.h"
|
||||
|
||||
inline bool isRadioMenuDisplayed()
|
||||
{
|
||||
|
||||
@@ -41,12 +41,6 @@ const unsigned char sticks[] = {
|
||||
value = editChoice(RADIO_SETUP_2ND_COLUMN, y, nullptr, nullptr, tmp, -2, +2, attr, event); \
|
||||
}
|
||||
|
||||
#if defined(SPLASH)
|
||||
#define CASE_SPLASH_PARAM(x) x,
|
||||
#else
|
||||
#define CASE_SPLASH_PARAM(x)
|
||||
#endif
|
||||
|
||||
enum MenuRadioSetupItems {
|
||||
CASE_RTCLOCK(ITEM_RADIO_SETUP_DATE)
|
||||
CASE_RTCLOCK(ITEM_RADIO_SETUP_TIME)
|
||||
@@ -535,7 +529,6 @@ void menuRadioSetup(event_t event)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(SPLASH)
|
||||
case ITEM_RADIO_SETUP_DISABLE_SPLASH:
|
||||
lcdDrawTextAlignedLeft(y, STR_SPLASHSCREEN);
|
||||
if (SPLASH_NEEDED()) {
|
||||
@@ -547,7 +540,6 @@ void menuRadioSetup(event_t event)
|
||||
}
|
||||
if (attr) g_eeGeneral.splashMode = -checkIncDecGen(event, -g_eeGeneral.splashMode, -3, 4);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case ITEM_RADIO_SETUP_START_SOUND:
|
||||
lcdDrawTextAlignedLeft(y, STR_PLAY_HELLO);
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#include "opentx.h"
|
||||
|
||||
#if defined(SPLASH)
|
||||
#define MAXIMUM_SPLASH_IMAGE_SIZE 3072
|
||||
const struct {
|
||||
const uint8_t __magic_prefix[4] = { 'S','P','S',0 };
|
||||
@@ -39,4 +38,3 @@ void drawSplash()
|
||||
lcdDrawRleBitmap(0, 0, splash_lbm);
|
||||
lcdRefresh();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user