mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
vfd: use wake_up instead of setMode for turn on LCD
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2009 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -101,6 +101,7 @@ void CVFD::count_down() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CVFD::wake_up() {
|
void CVFD::wake_up() {
|
||||||
|
if(!has_lcd) return;
|
||||||
if (atoi(g_settings.lcd_setting_dim_time) > 0) {
|
if (atoi(g_settings.lcd_setting_dim_time) > 0) {
|
||||||
timeout_cnt = atoi(g_settings.lcd_setting_dim_time);
|
timeout_cnt = atoi(g_settings.lcd_setting_dim_time);
|
||||||
g_settings.lcd_setting_dim_brightness > -1 ?
|
g_settings.lcd_setting_dim_brightness > -1 ?
|
||||||
|
@@ -90,7 +90,6 @@ class CVFD
|
|||||||
int brightness;
|
int brightness;
|
||||||
char text[256];
|
char text[256];
|
||||||
|
|
||||||
void wake_up();
|
|
||||||
void count_down();
|
void count_down();
|
||||||
|
|
||||||
CVFD();
|
CVFD();
|
||||||
@@ -145,6 +144,7 @@ class CVFD
|
|||||||
void Clear();
|
void Clear();
|
||||||
void ShowIcon(vfd_icon icon, bool show);
|
void ShowIcon(vfd_icon icon, bool show);
|
||||||
void ShowText(const char *str);
|
void ShowText(const char *str);
|
||||||
|
void wake_up();
|
||||||
MODES getMode(void) { return mode; };
|
MODES getMode(void) { return mode; };
|
||||||
#ifdef LCD_UPDATE
|
#ifdef LCD_UPDATE
|
||||||
private:
|
private:
|
||||||
|
@@ -2141,7 +2141,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
{
|
{
|
||||||
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR] != 0));
|
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR] != 0));
|
||||||
// turn on LCD display
|
// turn on LCD display
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
CVFD::getInstance()->wake_up();
|
||||||
|
|
||||||
// show Infoviewer
|
// show Infoviewer
|
||||||
if(show_info && channelList->getSize()) {
|
if(show_info && channelList->getSize()) {
|
||||||
|
Reference in New Issue
Block a user