simple_display: fix showRCLock() function

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: dbce194f82
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-01 (Wed, 01 Nov 2017)

Origin message was:
------------------
- simple_display: fix showRCLock() function

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-01 12:56:41 +01:00
committed by Thilo Graf
parent ccccafacab
commit 0d4962e419

View File

@@ -403,8 +403,17 @@ void CLCD::showTime(bool force)
setled(red, green);
}
void CLCD::showRCLock(int)
void CVFD::showRCLock(int duration)
{
if (g_info.hw_caps->display_type != HW_DISPLAY_LINE_TEXT || !g_settings.lcd_notify_rclock)
{
sleep(duration);
return;
}
display(g_Locale->getText(LOCALE_RCLOCK_LOCKED));
sleep(duration);
display(display_text);
}
/* update is default true, the mute code sets it to false