From 566f8ada23430eb758f8a51bca955444effcb89e Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 31 Mar 2022 15:46:50 +0100 Subject: [PATCH] Incoming LCN turnout throw. --- LCN.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LCN.cpp b/LCN.cpp index 16b3f3f..efb49ff 100644 --- a/LCN.cpp +++ b/LCN.cpp @@ -50,7 +50,11 @@ void LCN::loop() { if (Diag::LCN) DIAG(F("LCN IN %d%c"),id,(char)ch); if (!Turnout::exists(id)) LCNTurnout::create(id); Turnout::setClosedStateOnly(id,ch=='t'); - Turnout::turnoutlistHash++; // signals ED update of turnout data + id = 0; + } + else if (ch == 'y' || ch == 'Y') { // Turnout opcodes + if (Diag::LCN) DIAG(F("LCN IN %d%c"),id,(char)ch); + Turnout::setClosed(id,ch=='y'); id = 0; } else if (ch == 'S' || ch == 's') {