esp_clock: fix hour after midnight
This commit is contained in:
parent
29ed25cd51
commit
180320593f
@ -33,7 +33,7 @@
|
|||||||
// Globals
|
// Globals
|
||||||
//##########################################################################
|
//##########################################################################
|
||||||
|
|
||||||
#define STASSID "vulturul"
|
#define STASSID "Miracle"
|
||||||
#define STAPSK "***REMOVED***"
|
#define STAPSK "***REMOVED***"
|
||||||
|
|
||||||
#define TIME_24_HOUR true
|
#define TIME_24_HOUR true
|
||||||
@ -203,7 +203,7 @@ void loop() {
|
|||||||
hours = 24 + hours;
|
hours = 24 + hours;
|
||||||
}
|
}
|
||||||
if (hours > 23) {
|
if (hours > 23) {
|
||||||
hours = hours - 23;
|
hours = hours - 24;
|
||||||
}
|
}
|
||||||
Serial.print(hours); // print the hour
|
Serial.print(hours); // print the hour
|
||||||
Serial.print(':');
|
Serial.print(':');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user