From 1223f86a9b650bc98604469ce66cda3feeee0c13 Mon Sep 17 00:00:00 2001 From: giuliof Date: Tue, 28 May 2019 21:43:42 +0200 Subject: [PATCH] Fixed DOTS in common panel --- ArcheryClock-Arduino.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArcheryClock-Arduino.ino b/ArcheryClock-Arduino.ino index 9b609d9..72436a0 100644 --- a/ArcheryClock-Arduino.ino +++ b/ArcheryClock-Arduino.ino @@ -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