simple_display: fix showRCLock() function

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

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-01 12:56:41 +01:00
parent 542513689b
commit 2ca464d81b

View File

@@ -415,8 +415,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