Merge branch 'main' of https://hjkgitunix.dedyn.io/hans-jurgen/WetterDisplay
This commit is contained in:
commit
6491bd17b7
20
src/main.cpp
20
src/main.cpp
|
@ -466,17 +466,17 @@ bool getNTPtime(int sec) {
|
|||
|
||||
void showTime(tm localTime) {
|
||||
Serial.printf(
|
||||
"%04d-%02d-%02d %02d:%02d:%02d, day %d, %s time\n",
|
||||
localTime.tm_year + 1900,
|
||||
localTime.tm_mon + 1,
|
||||
localTime.tm_mday,
|
||||
localTime.tm_hour,
|
||||
localTime.tm_min,
|
||||
localTime.tm_sec,
|
||||
(localTime.tm_wday > 0 ? localTime.tm_wday : 7 ),
|
||||
(localTime.tm_isdst == 1 ? "summer" : "standard")
|
||||
"%04d-%02d-%02d %02d:%02d:%02d, day %d, %s time\n",
|
||||
localTime.tm_year + 1900,
|
||||
localTime.tm_mon + 1,
|
||||
localTime.tm_mday,
|
||||
localTime.tm_hour,
|
||||
localTime.tm_min,
|
||||
localTime.tm_sec,
|
||||
(localTime.tm_wday > 0 ? localTime.tm_wday : 7 ),
|
||||
(localTime.tm_isdst == 1 ? "summer" : "standard")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void zeigeZeit(tm localTime, int x = 0, int y = 0){
|
||||
sprintf(szZeit,"%02d:%02d:%02d",
|
||||
|
|
Loading…
Reference in New Issue
Block a user