mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Insert a back channel to Nextion displays running via the modem.
This commit is contained in:
26
Conf.cpp
26
Conf.cpp
@@ -326,6 +326,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),
|
||||
@@ -1118,6 +1120,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);
|
||||
@@ -2457,6 +2463,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;
|
||||
@@ -2517,11 +2538,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