mirror of
https://github.com/mrcory/Eva_Clock.git
synced 2026-08-02 15:24:27 -04:00
Attempt 12 hour fix
This commit is contained in:
@@ -51,10 +51,10 @@ int RAINBOW_HUE = 0;
|
||||
void CONVERT_TIME() {
|
||||
|
||||
#ifdef HOUR_12
|
||||
if (timeClient.getHours() > 12) {
|
||||
if (timeClient.getHours() >= 13) {
|
||||
byte _temp_time = timeClient.getHours() - 12;
|
||||
TIME_ARRAY [0] = _temp_time / 10;
|
||||
TIME_ARRAY [1] = _temp_time % 10;
|
||||
TIME_ARRAY [0] = (timeClient.getHours() - 12) / 10;
|
||||
TIME_ARRAY [1] = (timeClient.getHours() - 12) % 10;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user