fixed ABCD
This commit is contained in:
parent
ec2265bbd1
commit
5b3e0dbb04
|
@ -336,14 +336,14 @@ void loop()
|
|||
#ifndef GOLEM_PANEL
|
||||
if (cfg.abcd != 6) {
|
||||
// not A is on if archer group A is not selected
|
||||
digitalWrite(notA_PIN, cfg.GroupsNumber > 1 && !(ReceivedCommand.t.ArcherGroups & _BV(0)));
|
||||
digitalWrite(notA_PIN, !(ReceivedCommand.t.ArcherGroups & _BV(0)));
|
||||
|
||||
// not B ~ not D are on if groups are effectively present and are not selected
|
||||
if (cfg.competition != 2 && cfg.competition != 4)
|
||||
{
|
||||
digitalWrite(notB_PIN, cfg.GroupsNumber > 1 && !(ReceivedCommand.t.ArcherGroups & _BV(1)));
|
||||
digitalWrite(notC_PIN, cfg.GroupsNumber > 2 && !(ReceivedCommand.t.ArcherGroups & _BV(2)));
|
||||
digitalWrite(notD_PIN, cfg.GroupsNumber > 3 && !(ReceivedCommand.t.ArcherGroups & _BV(3)));
|
||||
digitalWrite(notB_PIN, cfg.GroupsNumber > 0 && !(ReceivedCommand.t.ArcherGroups & _BV(1)));
|
||||
digitalWrite(notC_PIN, cfg.GroupsNumber > 1 && !(ReceivedCommand.t.ArcherGroups & _BV(2)));
|
||||
digitalWrite(notD_PIN, cfg.GroupsNumber > 2 && !(ReceivedCommand.t.ArcherGroups & _BV(3)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue