mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Introducing LogoScreensaver=1 or 0 parameter for blanking OLED diplays in idle
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -237,6 +237,7 @@ m_oledBrightness(0U),
|
||||
m_oledInvert(false),
|
||||
m_oledScroll(false),
|
||||
m_oledRotate(false),
|
||||
m_oledLogoScreensaver(true),
|
||||
m_lcdprocAddress(),
|
||||
m_lcdprocPort(0U),
|
||||
m_lcdprocLocalPort(0U),
|
||||
@@ -790,6 +791,8 @@ bool CConf::read()
|
||||
m_oledScroll = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Rotate") == 0)
|
||||
m_oledRotate = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "LogoScreensaver") == 0)
|
||||
m_oledLogoScreensaver = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_LCDPROC) {
|
||||
if (::strcmp(key, "Address") == 0)
|
||||
m_lcdprocAddress = value;
|
||||
@@ -1698,6 +1701,11 @@ bool CConf::getOLEDRotate() const
|
||||
return m_oledRotate;
|
||||
}
|
||||
|
||||
bool CConf::getOLEDLogoScreensaver() const
|
||||
{
|
||||
return m_oledLogoScreensaver;
|
||||
}
|
||||
|
||||
|
||||
std::string CConf::getLCDprocAddress() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user