- lcd4l: add GetMaxBrightness() function

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
svenhoefer
2019-01-02 22:57:25 +01:00
committed by GetAway
parent 706027d792
commit e63e874e13
2 changed files with 29 additions and 0 deletions

View File

@@ -224,6 +224,25 @@ int CLCD4l::RemoveFile(const char *file)
return ret;
}
int CLCD4l::GetMaxBrightness()
{
int max_brightness;
switch (g_settings.lcd4l_dpf_type)
{
case SAMSUNG:
case VUSOLO4K:
max_brightness = 10;
break;
case PEARL:
default:
max_brightness = 7;
break;
}
return max_brightness;
}
/* ----------------------------------------------------------------- */
void CLCD4l::Init()