Fixed DOTS in common panel

This commit is contained in:
giuliof 2019-05-28 21:43:42 +02:00
parent da022a629d
commit 1223f86a9b
1 changed files with 4 additions and 1 deletions

View File

@ -270,7 +270,10 @@ void loop()
CATPORT(RIGHTDIGIT_PORT) = segment[ReceivedCommand.d.rDigit];
// Turn on dot between minutes and seconds only if count is in minutes and its digit is a representable value (not dash)
#ifndef GOLEM_PANEL
CATPORT(LEFTDIGIT_PORT) = segment[ReceivedCommand.d.lDigit] | DOTS_bm;
if (ReceivedCommand.d.lDigit != CHAR_DASH && ReceivedCommand.d.minutes)
CATPORT(LEFTDIGIT_PORT) = segment[ReceivedCommand.d.lDigit] | DOTS_bm;
else
CATPORT(LEFTDIGIT_PORT) = segment[ReceivedCommand.d.lDigit];
#else
CATPORT(LEFTDIGIT_PORT) = segment[ReceivedCommand.d.lDigit];
#endif