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.
This commit is contained in:
KE7FNS 2021-10-05 15:06:26 -07:00 committed by GitHub
parent ed541885f6
commit 991fd46cad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()