mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Merge branch 'master' into IAX
This commit is contained in:
26
Conf.cpp
26
Conf.cpp
@@ -329,6 +329,8 @@ m_nextionUTC(false),
|
||||
m_nextionIdleBrightness(20U),
|
||||
m_nextionScreenLayout(0U),
|
||||
m_nextionTempInFahrenheit(false),
|
||||
m_nextionOutput(false),
|
||||
m_nextionUDPPort(6759),
|
||||
m_oledType(3U),
|
||||
m_oledBrightness(0U),
|
||||
m_oledInvert(false),
|
||||
@@ -1127,6 +1129,10 @@ bool CConf::read()
|
||||
m_nextionScreenLayout = (unsigned int)::strtoul(value, NULL, 0);
|
||||
else if (::strcmp(key, "DisplayTempInFahrenheit") == 0)
|
||||
m_nextionTempInFahrenheit = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "NextionOutput") == 0)
|
||||
m_nextionOutput = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "NextionUDPPort") == 0)
|
||||
m_nextionUDPPort = (unsigned short)::atoi(value);
|
||||
} else if (section == SECTION_OLED) {
|
||||
if (::strcmp(key, "Type") == 0)
|
||||
m_oledType = (unsigned char)::atoi(value);
|
||||
@@ -2481,6 +2487,21 @@ unsigned int CConf::getNextionScreenLayout() const
|
||||
return m_nextionScreenLayout;
|
||||
}
|
||||
|
||||
bool CConf::getNextionTempInFahrenheit() const
|
||||
{
|
||||
return m_nextionTempInFahrenheit;
|
||||
}
|
||||
|
||||
bool CConf::getNextionOutput() const
|
||||
{
|
||||
return m_nextionOutput;
|
||||
}
|
||||
|
||||
unsigned short CConf::getNextionUDPPort() const
|
||||
{
|
||||
return m_nextionUDPPort;
|
||||
}
|
||||
|
||||
unsigned char CConf::getOLEDType() const
|
||||
{
|
||||
return m_oledType;
|
||||
@@ -2541,11 +2562,6 @@ bool CConf::getLCDprocDimOnIdle() const
|
||||
return m_lcdprocDimOnIdle;
|
||||
}
|
||||
|
||||
bool CConf::getNextionTempInFahrenheit() const
|
||||
{
|
||||
return m_nextionTempInFahrenheit;
|
||||
}
|
||||
|
||||
bool CConf::getLockFileEnabled() const
|
||||
{
|
||||
return m_lockFileEnabled;
|
||||
|
||||
Reference in New Issue
Block a user