From d0f9ae053196e0600323b6a11315eaf723d207af Mon Sep 17 00:00:00 2001 From: phl0 Date: Sat, 16 Apr 2016 22:25:51 +0200 Subject: [PATCH] Add reflector info to TFTSerial --- TFTSerial.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);