From dbce194f8254a99d4c80acfb15d3aa9486209e68 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 1 Nov 2017 12:56:41 +0100 Subject: [PATCH] - simple_display: fix showRCLock() function Signed-off-by: Thilo Graf --- src/driver/simple_display.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 7cf8267e6..48b0f2b38 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -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