From 180320593f1e8647f80daace7023c94ab3fd020b Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 10 May 2020 09:52:54 +0200 Subject: [PATCH] esp_clock: fix hour after midnight --- esp_clock.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp_clock.ino b/esp_clock.ino index a00eee0..2904979 100644 --- a/esp_clock.ino +++ b/esp_clock.ino @@ -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(':');