Add dot as date separator

This commit is contained in:
phl0
2016-06-22 11:51:41 +02:00
parent 768e3efcad
commit 2bd75c1cff
6 changed files with 24 additions and 4 deletions

View File

@@ -139,6 +139,7 @@ m_nextionPort("/dev/ttyAMA0"),
m_nextionBrightness(50U),
m_nextionDisplayClock(false),
m_nextionUTC(false),
m_nextionDateFormat("English"),
m_oledType(3),
m_oledBrightness(0),
m_oledInvert(0)
@@ -461,6 +462,8 @@ bool CConf::read()
m_nextionDisplayClock = ::atoi(value) == 1;
else if (::strcmp(key, "UTC") == 0)
m_nextionUTC = ::atoi(value) == 1;
else if (::strcmp(key, "DateFormat") == 0)
m_nextionDateFormat = value;
} else if (section == SECTION_OLED) {
if (::strcmp(key, "Type") == 0)
m_oledType = (unsigned char)::atoi(value);
@@ -926,6 +929,11 @@ bool CConf::getNextionUTC() const
return m_nextionUTC;
}
std::string CConf::getNextionDateFormat() const
{
return m_nextionDateFormat;
}
unsigned char CConf::getOLEDType() const
{
return m_oledType;