Introducing LogoScreensaver=1 or 0 parameter for blanking OLED diplays in idle

This commit is contained in:
sp5lg
2019-09-27 22:28:57 +02:00
parent d0dbb1127b
commit bd5117b9e4
6 changed files with 18 additions and 4 deletions

View File

@@ -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
{