From 991fd46cadc849ed088156e1060dd01e0513cb16 Mon Sep 17 00:00:00 2001 From: KE7FNS <91805010+KE7FNS@users.noreply.github.com> Date: Tue, 5 Oct 2021 15:06:26 -0700 Subject: [PATCH] Update HD44780.cpp Reversing recent changes to limit strings to the length of 5 to match previously implemented structure so alignment works on multiple displays without issues and position conflicts. --- HD44780.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HD44780.cpp b/HD44780.cpp index bf2f6dd..a43e0d0 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -1052,14 +1052,14 @@ void CHD44780::clearNXDNInt() void CHD44780::writePOCSAGInt(uint32_t ric, const std::string& message) { - ::lcdPosition(m_fd, m_cols - 9, m_rows - 1); - ::lcdPuts(m_fd, "POCSAG TX"); + ::lcdPosition(m_fd, m_cols - 5, m_rows - 1); + ::lcdPuts(m_fd, "POCSAG"); // Shortened "POCSAG TX" to 5 characters because it wraps around onto the next line (or on 16x2 displays the 1st line). } void CHD44780::clearPOCSAGInt() { - ::lcdPosition(m_fd, m_cols - 9, m_rows - 1); - ::lcdPuts(m_fd, " Idle"); + ::lcdPosition(m_fd, m_cols - 5, m_rows - 1); + ::lcdPuts(m_fd, " Idle"); // Reverted back to 5 character implementation. } void CHD44780::writeCWInt()