Correct time offset

This commit is contained in:
phl0 2016-06-24 18:14:48 +02:00
parent 06af87f029
commit 7d31554488
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -726,7 +726,7 @@ void CHD44780::clockInt(unsigned int ms)
::lcdPosition(m_fd, m_cols - 10, 1);
::lcdPrintf(m_fd, "%s%.*s", strlen(m_buffer1) > 8 ? "" : " ", 10, m_buffer1);
} else {
::lcdPosition(m_fd, (m_cols - strlen(m_buffer1) == 8 ? 8 : 10) / 2, m_rows == 2 ? 1 : 2);
::lcdPosition(m_fd, (m_cols - (strlen(m_buffer1) == 8 ? 8 : 10)) / 2, m_rows == 2 ? 1 : 2);
::lcdPrintf(m_fd, "%.*s", strlen(m_buffer1) == 8 ? 8 : 10, m_buffer1);
}