mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Add Config option to dim Nextion display in idle
state
This commit is contained in:
parent
18fa0df5d3
commit
7e906f3fdd
6 changed files with 42 additions and 11 deletions
|
|
@ -834,6 +834,7 @@ void CMMDVMHost::createDisplay()
|
|||
bool displayClock = m_conf.getNextionDisplayClock();
|
||||
bool utc = m_conf.getNextionUTC();
|
||||
std::string dateformat = m_conf.getNextionDateFormat();
|
||||
bool dimOnIdle = m_conf.getNextionDimOnIdle();
|
||||
|
||||
LogInfo(" Port: %s", port.c_str());
|
||||
LogInfo(" Brightness: %u", brightness);
|
||||
|
|
@ -841,7 +842,7 @@ void CMMDVMHost::createDisplay()
|
|||
if (displayClock)
|
||||
LogInfo(" Display UTC: %s", utc ? "yes" : "no");
|
||||
|
||||
m_display = new CNextion(m_callsign, dmrid, port, brightness, displayClock, utc, dateformat);
|
||||
m_display = new CNextion(m_callsign, dmrid, port, brightness, displayClock, utc, dateformat, dimOnIdle);
|
||||
#if defined(HD44780)
|
||||
} else if (type == "HD44780") {
|
||||
unsigned int rows = m_conf.getHD44780Rows();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue