- rc_lock: rework class; switch to singleton; add icon; vfd-support

This commit is contained in:
svenhoefer
2016-01-20 20:00:00 +01:00
parent 7783ee684f
commit 2eb0aed5db
14 changed files with 115 additions and 64 deletions

View File

@@ -404,8 +404,18 @@ void CVFD::showTime(bool force)
recstatus = tmp_recstatus;
}
void CVFD::showRCLock(int /*duration*/)
void CVFD::showRCLock(int duration)
{
if (!has_lcd)
{
sleep(duration);
return;
}
std::string _text = text;
ShowText(g_Locale->getText(LOCALE_RCLOCK_LOCKED));
sleep(duration);
ShowText(_text.c_str());
}
void CVFD::showVolume(const char vol, const bool force_update)