mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +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
|
|
@ -242,10 +242,12 @@ void CNextion::clockInt(unsigned int ms)
|
|||
int Sec = Time->tm_sec;
|
||||
|
||||
char text[50U];
|
||||
if (strcmp(m_dateformat.c_str(), "English") == 0) {
|
||||
if (strcmp(m_dateformat.c_str(), "British") == 0) {
|
||||
::sprintf(text, "t2.txt=\"%02d:%02d:%02d %02d/%02d/%2d\"", Hour, Min, Sec, Day, Month, Year % 100);
|
||||
} else if (strcmp(m_dateformat.c_str(), "German") == 0) {
|
||||
::sprintf(text, "t2.txt=\"%02d:%02d:%02d %02d.%02d.%2d\"", Hour, Min, Sec, Day, Month, Year % 100);
|
||||
} else if (strcmp(m_dateformat.c_str(), "American") == 0) {
|
||||
::sprintf(text, "t2.txt=\"%02d:%02d:%02d %02d/%02d/%2d\"", Hour, Min, Sec, Month, Day, Year % 100);
|
||||
}
|
||||
sendCommand(text);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue