mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
vfd: try to avoid annoing display of volume after leaving standby modes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 18a0d03396
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-07-05 (Mon, 05 Jul 2021)
Origin message was:
------------------
- vfd: try to avoid annoing display of volume after leaving standby modes
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -660,7 +660,8 @@ void CLCD::showRCLock(int duration)
|
||||
|
||||
void CLCD::showVolume(const char vol, const bool perform_update)
|
||||
{
|
||||
volume = vol;
|
||||
setVolume(vol);
|
||||
|
||||
if (
|
||||
((mode == MODE_TVRADIO) && (g_settings.lcd_setting[SNeutrinoSettings::LCD_SHOW_VOLUME])) ||
|
||||
((mode == MODE_MOVIE) && (g_settings.lcd_setting[SNeutrinoSettings::LCD_SHOW_VOLUME])) ||
|
||||
@@ -694,6 +695,14 @@ void CLCD::showVolume(const char vol, const bool perform_update)
|
||||
wake_up();
|
||||
}
|
||||
|
||||
void CLCD::setVolume(const char vol)
|
||||
{
|
||||
if (vol == volume)
|
||||
return;
|
||||
|
||||
volume = vol;
|
||||
}
|
||||
|
||||
void CLCD::showPercentOver(const unsigned char perc, const bool perform_update, const MODES m)
|
||||
{
|
||||
if (mode != m)
|
||||
|
Reference in New Issue
Block a user