mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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));
|
||||
|
||||
//energy, shutdown
|
||||
#ifndef HAVE_SPARK_HARDWARE
|
||||
#if !defined(HAVE_SPARK_HARDWARE) && !defined(HAVE_AZBOX_HARDWARE)
|
||||
if(cs_get_revision() > 7)
|
||||
#endif
|
||||
{
|
||||
|
@@ -218,7 +218,7 @@ static void initGlobals(void)
|
||||
g_Radiotext = NULL;
|
||||
g_volume = NULL;
|
||||
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||
/* spark has revision == 1 like tripledragon for now */
|
||||
can_deepstandby = true;
|
||||
#else
|
||||
@@ -655,7 +655,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
g_settings.screen_preset = 0; /* does not make sense to have two configurations for that... */
|
||||
#endif
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||
g_settings.screen_preset = 1; /* spark is now always using 1280x720 framebuffer */
|
||||
#endif
|
||||
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");
|
||||
|
||||
unsigned int system_rev = cs_get_revision();
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||
system_rev = 8; // :-)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user