Skip to content

Commit

Permalink
Digital clock displayed immediately after change
Browse files Browse the repository at this point in the history
  • Loading branch information
dbambus committed Apr 30, 2023
1 parent f8c3161 commit 436c49c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/clockWork.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,11 @@ void ClockWork::loop(struct tm &tm) {
}

case COMMAND_MODE_DIGITAL_CLOCK: {
clearClockByProgInit();
if (G.progInit) {
clearClockByProgInit();
led.showDigitalClock(_minute % 10, _minute / 10, _hour % 10,
_hour / 10);
}
break;
}

Expand Down

0 comments on commit 436c49c

Please sign in to comment.