lcd4l: add GetMaxBrightness() function

Origin commit data
------------------
Branch: ni/coolstream
Commit: 160dbcaaa0
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-02 (Wed, 02 Jan 2019)

Origin message was:
------------------
- lcd4l: add GetMaxBrightness() function

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-01-02 01:00:05 +01:00
parent e28941a1c7
commit 4b0c12d06e
2 changed files with 20 additions and 0 deletions

View File

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

View File

@@ -54,6 +54,8 @@ class CLCD4l
int CreateFile(const char *file, std::string content = "", bool convert = false);
int RemoveFile(const char *file);
int GetMaxBrightness();
void ResetParseID() { m_ParseID = 0; }
private: