Integrate the new messages into the OLED display driver.

This commit is contained in:
Jonathan Naylor
2018-10-31 16:54:57 +00:00
parent 1a971e3986
commit 4bf15438d5
8 changed files with 144 additions and 80 deletions

View File

@@ -235,6 +235,7 @@ m_oledBrightness(0U),
m_oledInvert(false),
m_oledScroll(false),
m_oledRotate(false),
m_oledCast(false),
m_lcdprocAddress(),
m_lcdprocPort(0U),
m_lcdprocLocalPort(0U),
@@ -779,6 +780,8 @@ bool CConf::read()
m_oledScroll = ::atoi(value) == 1;
else if (::strcmp(key, "Rotate") == 0)
m_oledRotate = ::atoi(value) == 1;
else if (::strcmp(key, "Cast") == 0)
m_oledCast = ::atoi(value) == 1;
} else if (section == SECTION_LCDPROC) {
if (::strcmp(key, "Address") == 0)
m_lcdprocAddress = value;
@@ -1675,6 +1678,11 @@ bool CConf::getOLEDRotate() const
return m_oledRotate;
}
bool CConf::getOLEDCast() const
{
return m_oledCast;
}
std::string CConf::getLCDprocAddress() const
{
return m_lcdprocAddress;