mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
LCDproc: Make dimming the status screen optional
If you run another LCDproc client that doesn't dim the display when it displays its info, the display will effectively flash on and off (or dim/bright depending on your LCDd configuration) as it switches screens between MMDVMHost and the other client(s). Making the dimming optional and turning it off in the host stops this "annoyance".
This commit is contained in:
parent
3ff711f3ea
commit
44e8f6717a
6 changed files with 20 additions and 5 deletions
7
Conf.cpp
7
Conf.cpp
|
|
@ -592,6 +592,8 @@ bool CConf::read()
|
|||
m_lcdprocDisplayClock = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "UTC") == 0)
|
||||
m_lcdprocUTC = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "DimOnIdle") == 0)
|
||||
m_lcdprocDimOnIdle = ::atoi(value) == 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1199,3 +1201,8 @@ bool CConf::getLCDprocUTC() const
|
|||
{
|
||||
return m_lcdprocUTC;
|
||||
}
|
||||
|
||||
bool CConf::getLCDprocDimOnIdle() const
|
||||
{
|
||||
return m_lcdprocDimOnIdle;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue