From dbdcab05e2a4bb0ff04a3b7b060fbe521ecc3561 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 28 Apr 2016 17:11:27 +0100 Subject: [PATCH] C++ cleanups. --- Nextion.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Nextion.cpp b/Nextion.cpp index 8fa23b4..eec152d 100644 --- a/Nextion.cpp +++ b/Nextion.cpp @@ -109,14 +109,7 @@ void CNextion::writeDStar(const char* my1, const char* my2, const char* your, co ::sprintf(text, "t0.txt=\"%s %.8s/%4.4s\"", type, my1, my2); sendCommand(text); - if (m_size == "2.4") { - ::sprintf(text, "t1.txt=\"%.8s\"", your); - sendCommand(text); - if (::strcmp(reflector, " ") != 0) { - ::sprintf(text, "t2.txt=\"via %.8s\"", reflector); - sendCommand(text); - } - } else if (m_size == "3.2") { + if (m_size == "2.4" || m_size == "3.2") { ::sprintf(text, "t1.txt=\"%.8s\"", your); sendCommand(text); if (::strcmp(reflector, " ") != 0) {