esp_clock: fix hour after midnight
This commit is contained in:
parent
29ed25cd51
commit
180320593f
@ -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(':');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user