esp_clock: fix hour after midnight

This commit is contained in:
Nicu Hodos 2020-05-10 09:52:54 +02:00
parent 29ed25cd51
commit 180320593f

View File

@ -33,7 +33,7 @@
// Globals
//##########################################################################
#define STASSID "vulturul"
#define STASSID "Miracle"
#define STAPSK "***REMOVED***"
#define TIME_24_HOUR true
@ -203,7 +203,7 @@ void loop() {
hours = 24 + hours;
}
if (hours > 23) {
hours = hours - 23;
hours = hours - 24;
}
Serial.print(hours); // print the hour
Serial.print(':');