From b54f1a0b144ad8dc1427f2d1e5a790903c523130 Mon Sep 17 00:00:00 2001 From: Tony Corbett Date: Sun, 5 Jun 2016 22:28:41 +0300 Subject: [PATCH] Fix TS1 not displaying --- HD44780.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HD44780.cpp b/HD44780.cpp index 010beab..37cbc60 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -544,7 +544,7 @@ void CHD44780::writeDMRInt(unsigned int slotNo, const std::string& src, bool gro if (slotNo == 1U) { ::lcdPosition(m_fd, 0, (m_rows / 2) - 1); ::lcdPuts(m_fd, "1 "); - ::sprintf(m_buffer2, "%s > %s%s ", src.c_str(), group ? "TG" : "", dst.c_str()); + ::sprintf(m_buffer1, "%s > %s%s ", src.c_str(), group ? "TG" : "", dst.c_str()); ::lcdPrintf(m_fd, "%.*s", m_cols - 2U, m_buffer1); // Start the scroll timer on slot 1 if text in m_buffer1 will not fit in the space available