Add callsign and DMR id to displays idle screen

This commit is contained in:
phl0
2016-04-08 13:47:05 +02:00
parent b862797ca9
commit 41ffcc4cab
5 changed files with 23 additions and 9 deletions

View File

@@ -567,6 +567,8 @@ void CMMDVMHost::readParams()
void CMMDVMHost::createDisplay()
{
std::string type = m_conf.getDisplay();
std::string callsign = m_conf.getCallsign();
unsigned int dmrid = m_conf.getDMRId();
LogInfo("Display Parameters");
LogInfo(" Type: %s", type.c_str());
@@ -586,7 +588,7 @@ void CMMDVMHost::createDisplay()
LogInfo(" Port: %s", port.c_str());
LogInfo(" Brightness: %u", brightness);
m_display = new CNextion(port, brightness);
m_display = new CNextion(callsign.c_str(), dmrid, port, brightness);
#if defined(HD44780)
} else if (type == "HD44780") {
unsigned int rows = m_conf.getHD44780Rows();
@@ -598,7 +600,7 @@ void CMMDVMHost::createDisplay()
LogInfo(" Columns: %u", columns);
LogInfo(" Pins: %u,%u,%u,%u,%u,%u", pins.at(0U), pins.at(1U), pins.at(2U), pins.at(3U), pins.at(4U), pins.at(5U));
m_display = new CHD44780(rows, columns, pins);
m_display = new CHD44780(rows, columns, callsign.c_str(), dmrid, pins);
}
#endif
} else {