From efce94058e0815738c0d7886000f6f421e1552d6 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 22 Aug 2021 14:22:59 +0200 Subject: [PATCH] fix typo and remove debug stuff --- DCC.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DCC.cpp b/DCC.cpp index 01e6aa5..46ed9da 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -257,11 +257,9 @@ void DCC::setAccessory(int address, byte number, bool activate) { b[0] = address % 64 + 128; // second byte is of the form 1AAACDDD, where C should be 1, and the least significant D represent activate/deactivate // if we follow RCN-213, activate has to be reversed because in DCC++/DCC-EX activate=1 is "thrown, diverging", - // but in RCN-213, 1 means "closed, straight" and 0 "thown, diverging" + // but in RCN-213, 1 means "closed, straight" and 0 "thrown, diverging" #ifdef TURNOUTS_RCN_213 activate = !activate; -#else - #error fooo #endif b[1] = ((((address / 64) % 8) << 4) + (number % 4 << 1) + activate % 2) ^ 0xF8;