|
@@ -229,8 +229,8 @@ int main() {
|
|
|
|
|
|
// wait(3);
|
|
|
|
|
|
- // DS3231_SetTime(00, 13, 21);
|
|
|
- // DS3231_SetDate(MONDAY, 11, 3, 19, 0);
|
|
|
+ // DS3231_SetTime(00, 05, 00);
|
|
|
+ // DS3231_SetDate(FRIDAY, 15, 3, 19, 0);
|
|
|
|
|
|
// Setup a ticker to refresh the display at 1kHz
|
|
|
RefreshTicker.attach_us(RefreshTickerCallback, REFRESH_RATE_US);
|
|
@@ -276,6 +276,7 @@ int main() {
|
|
|
|
|
|
// Compensate for daylight savings time
|
|
|
nextHour = IsDst(day, date, month, nextHour) ? (nextHour + 1) % 12 : nextHour % 12;
|
|
|
+ if (nextHour == 0) nextHour = 12;
|
|
|
|
|
|
// Update the display configuration based on the new/previous time
|
|
|
if (startup || prevHour / 10 != nextHour / 10) {
|