mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-29 14:35:41 +08:00
Add output of information about incoming reflector
This commit is contained in:
@@ -107,12 +107,13 @@ void CHD44780::setLockout()
|
||||
m_dmr = false;
|
||||
}
|
||||
|
||||
void CHD44780::writeDStar(const char* my1, const char* my2, const char* your, const char* type)
|
||||
void CHD44780::writeDStar(const char* my1, const char* my2, const char* your, const char* type, const char* reflector)
|
||||
{
|
||||
assert(my1 != NULL);
|
||||
assert(my2 != NULL);
|
||||
assert(your != NULL);
|
||||
assert(type != NULL);
|
||||
assert(reflector != NULL);
|
||||
|
||||
::lcdClear(m_fd);
|
||||
|
||||
@@ -130,7 +131,11 @@ void CHD44780::writeDStar(const char* my1, const char* my2, const char* your, co
|
||||
::lcdPosition(m_fd, 0, 1);
|
||||
::lcdPrintf(m_fd, "%.*s", m_cols, buffer);
|
||||
|
||||
::sprintf(buffer, "%.8s", your);
|
||||
if (strcmp(reflector, " ") == 0) {
|
||||
::sprintf(buffer, "%.8s", your);
|
||||
} else {
|
||||
::sprintf(buffer, "%.8s <- %.8s", your, reflector);
|
||||
}
|
||||
::lcdPosition(m_fd, 0, 2);
|
||||
::lcdPrintf(m_fd, "%.*s", m_cols, buffer);
|
||||
} else if (m_rows == 2 && m_cols == 40U) {
|
||||
|
||||
Reference in New Issue
Block a user