diff --git a/TFTSerial.cpp b/TFTSerial.cpp index 0a1bb0a..775f2e6 100644 --- a/TFTSerial.cpp +++ b/TFTSerial.cpp @@ -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);