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:
vanhofen
2021-07-05 23:44:18 +02:00
parent 148bdd46e1
commit 6f706f89f4
7 changed files with 61 additions and 16 deletions

View File

@@ -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)