Skip to content

Commit

Permalink
Small optimize to fit 8kB ATmega8
Browse files Browse the repository at this point in the history
  • Loading branch information
WiseLord committed Aug 21, 2018
1 parent 8663f92 commit 062133d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion display.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void loadDateString(void)
matrixScrollAddString(", ");
matrixScrollAddString(mkNumberString(rtc.date, 3, 0x7F));
matrixScrollAddString(" ");
matrixScrollAddStringEeprom(txtLabels[LABEL_DECEMBER + rtc.month % 12]);
matrixScrollAddStringEeprom(txtLabels[LABEL_DECEMBER + (rtc.month >= 12 ? 0 : rtc.month)]);
matrixScrollAddString(mkNumberString(2000 + rtc.year, 5, ' '));
matrixScrollAddString(" ");
matrixScrollAddStringEeprom(txtLabels[LABEL_Y]);
Expand Down

0 comments on commit 062133d

Please sign in to comment.