mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Renamed English to British and added American (MDY)
This commit is contained in:
parent
3f4f4d340d
commit
3b09e2cf2f
4 changed files with 10 additions and 5 deletions
|
|
@ -735,10 +735,12 @@ void CHD44780::clockInt(unsigned int ms)
|
|||
|
||||
if (m_cols != 16U && m_rows != 2U) {
|
||||
::lcdPosition(m_fd, (m_cols - 8) / 2, m_rows == 2 ? 0 : 1);
|
||||
if (strcmp(m_dateformat.c_str(), "English") == 0) {
|
||||
if (strcmp(m_dateformat.c_str(), "British") == 0) {
|
||||
::lcdPrintf(m_fd, "%02d/%02d/%2d", Day, Month, Year%100);
|
||||
} else if (strcmp(m_dateformat.c_str(), "German") == 0) {
|
||||
::lcdPrintf(m_fd, "%02d.%02d.%2d", Day, Month, Year%100);
|
||||
} else if (strcmp(m_dateformat.c_str(), "American") == 0) {
|
||||
::lcdPrintf(m_fd, "%02d/%02d/%2d", Month, Day, Year%100);
|
||||
}
|
||||
}
|
||||
m_clockDisplayTimer.start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue