mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Add output of information about incoming reflector
This commit is contained in:
parent
103950d27f
commit
bf128e76f3
10 changed files with 28 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue