Add reflector info to TFTSerial
This commit is contained in:
parent
c4d5dd870e
commit
d0f9ae0531
|
@ -148,6 +148,7 @@ void CTFTSerial::writeDStar(const char* my1, const char* my2, const char* your,
|
|||
assert(my2 != NULL);
|
||||
assert(your != NULL);
|
||||
assert(type != NULL);
|
||||
assert(reflector != NULL);
|
||||
|
||||
if (m_mode != MODE_DSTAR) {
|
||||
// Clear the screen
|
||||
|
@ -165,7 +166,11 @@ void CTFTSerial::writeDStar(const char* my1, const char* my2, const char* your,
|
|||
gotoPosPixel(5U, 80U);
|
||||
displayText(text);
|
||||
|
||||
::sprintf(text, "%.8s", your);
|
||||
if (strcmp(reflector, " ") == 0) {
|
||||
::sprintf(text, "%.8s", your);
|
||||
} else {
|
||||
::sprintf(text, "%.8s <- %.8s", your, reflector);
|
||||
}
|
||||
|
||||
gotoPosPixel(5U, 100U);
|
||||
displayText(text);
|
||||
|
|
Loading…
Reference in a new issue