Add an error display.

This commit is contained in:
Jonathan Naylor
2016-03-21 22:47:58 +00:00
parent a3c25766c0
commit b19c46ff2c
11 changed files with 74 additions and 3 deletions

View File

@@ -68,6 +68,19 @@ void CHD44780::setIdle()
::lcdPuts(m_fd, "Idle");
}
void CHD44780::setError(const char* text)
{
assert(text != NULL);
::lcdClear(m_fd);
::lcdPosition(m_fd, 0, 0);
::lcdPuts(m_fd, "MMDVM");
::lcdPosition(m_fd, 0, 1);
::lcdPrintf(m_fd, "%s ERROR", text);
}
void CHD44780::setLockout()
{
::lcdClear(m_fd);