Skip to content

Commit

Permalink
- simple_display: fix showRCLock() function
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Graf <[email protected]>
  • Loading branch information
svenhoefer authored and dbt1 committed Nov 1, 2017
1 parent 61a31e2 commit dbce194
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/driver/simple_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbce194

Please sign in to comment.