mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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:
@@ -191,6 +191,24 @@ int CLCD4l::RemoveFile(const char *file)
|
|||||||
return ret;
|
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()
|
void CLCD4l::Init()
|
||||||
|
@@ -54,6 +54,8 @@ class CLCD4l
|
|||||||
int CreateFile(const char *file, std::string content = "", bool convert = false);
|
int CreateFile(const char *file, std::string content = "", bool convert = false);
|
||||||
int RemoveFile(const char *file);
|
int RemoveFile(const char *file);
|
||||||
|
|
||||||
|
int GetMaxBrightness();
|
||||||
|
|
||||||
void ResetParseID() { m_ParseID = 0; }
|
void ResetParseID() { m_ParseID = 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user