glcdsetup: disable analog clock in standby mode; front display is flickering as hell

Origin commit data
------------------
Commit: 8cad105bde
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-15 (Mon, 15 Jun 2020)

Origin message was:
------------------
- glcdsetup: disable analog clock in standby mode; front display is flickering as hell
This commit is contained in:
vanhofen
2020-06-15 12:03:20 +02:00
parent a7739cbd67
commit f47001b7b2
3 changed files with 8 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ static const CMenuOptionChooser::keyval GLCD_CLOCK_OPTIONS[] = {
{ nGLCD::CLOCK_OFF, LOCALE_OPTIONS_OFF },
{ nGLCD::CLOCK_DIGITAL_HM, LOCALE_GLCD_CLOCK_DIGITAL_HM },
// { nGLCD::CLOCK_DIGITAL_HMS, LOCALE_GLCD_CLOCK_DIGITAL_HMS },
{ nGLCD::CLOCK_ANALOG, LOCALE_GLCD_CLOCK_ANALOG }
// { nGLCD::CLOCK_ANALOG, LOCALE_GLCD_CLOCK_ANALOG }
};
#define GLCD_CLOCK_OPTIONS_COUNT (sizeof(GLCD_CLOCK_OPTIONS)/sizeof(CMenuOptionChooser::keyval))

View File

@@ -1400,6 +1400,12 @@ void CNeutrinoApp::upgradeSetup(const char * fname)
{
configfile.deleteKey("channellist_primetime");
}
if (g_settings.version_pseudo < "20200615000000")
{
// disable analog clock in standby mode
if (g_settings.glcd_time_in_standby > 1)
g_settings.glcd_time_in_standby = 1;
}
g_settings.version_pseudo = NEUTRINO_VERSION_PSEUDO;
configfile.setString("version_pseudo", g_settings.version_pseudo);

View File

@@ -1 +1 @@
#define NEUTRINO_VERSION_PSEUDO "20190305000000"
#define NEUTRINO_VERSION_PSEUDO "20200615000000"