mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
implement shutdown handling for azbox
This commit is contained in:
@@ -171,7 +171,7 @@ int CMiscMenue::showMiscSettingsMenu()
|
|||||||
misc_menue->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_GENERAL, true, NULL, misc_menue_general, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
misc_menue->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_GENERAL, true, NULL, misc_menue_general, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
||||||
|
|
||||||
//energy, shutdown
|
//energy, shutdown
|
||||||
#ifndef HAVE_SPARK_HARDWARE
|
#if !defined(HAVE_SPARK_HARDWARE) && !defined(HAVE_AZBOX_HARDWARE)
|
||||||
if(cs_get_revision() > 7)
|
if(cs_get_revision() > 7)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@@ -218,7 +218,7 @@ static void initGlobals(void)
|
|||||||
g_Radiotext = NULL;
|
g_Radiotext = NULL;
|
||||||
g_volume = NULL;
|
g_volume = NULL;
|
||||||
|
|
||||||
#if HAVE_SPARK_HARDWARE
|
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||||
/* spark has revision == 1 like tripledragon for now */
|
/* spark has revision == 1 like tripledragon for now */
|
||||||
can_deepstandby = true;
|
can_deepstandby = true;
|
||||||
#else
|
#else
|
||||||
@@ -655,7 +655,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
#if HAVE_TRIPLEDRAGON
|
#if HAVE_TRIPLEDRAGON
|
||||||
g_settings.screen_preset = 0; /* does not make sense to have two configurations for that... */
|
g_settings.screen_preset = 0; /* does not make sense to have two configurations for that... */
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SPARK_HARDWARE
|
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||||
g_settings.screen_preset = 1; /* spark is now always using 1280x720 framebuffer */
|
g_settings.screen_preset = 1; /* spark is now always using 1280x720 framebuffer */
|
||||||
#endif
|
#endif
|
||||||
g_settings.screen_StartX = g_settings.screen_preset ? g_settings.screen_StartX_lcd : g_settings.screen_StartX_crt;
|
g_settings.screen_StartX = g_settings.screen_preset ? g_settings.screen_StartX_lcd : g_settings.screen_StartX_crt;
|
||||||
|
@@ -132,7 +132,7 @@ void CNeutrinoApp::InitMenuMain()
|
|||||||
dprintf(DEBUG_DEBUG, "init mainmenue\n");
|
dprintf(DEBUG_DEBUG, "init mainmenue\n");
|
||||||
|
|
||||||
unsigned int system_rev = cs_get_revision();
|
unsigned int system_rev = cs_get_revision();
|
||||||
#if HAVE_SPARK_HARDWARE
|
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||||
system_rev = 8; // :-)
|
system_rev = 8; // :-)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user