Fix AM hours for 12 hour mode.

Add code that should have already been there.
This commit is contained in:
mrcory
2022-10-30 19:43:52 -04:00
parent f781eb133f
commit 8c87be9ec1
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -55,6 +55,9 @@ int RAINBOW_HUE = 0;
byte _temp_time = timeClient.getHours() - 12;
TIME_ARRAY [0] = (timeClient.getHours() - 12) / 10;
TIME_ARRAY [1] = (timeClient.getHours() - 12) % 10;
} else {
TIME_ARRAY [0] = timeClient.getHours() / 10;
TIME_ARRAY [1] = timeClient.getHours() % 10;
}
#endif
+1 -1
View File
@@ -7,7 +7,7 @@
#define BROKER_USER ""
#define BROKER_PASS ""
#define VERSION "1.0.1"
#define VERSION "1.0.2"
// Unique ID must be set!
byte mac[] = {0x87, 0x21, 0xE1, 0x7F, 0xFA, 0xF7};