mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
Incoming LCN turnout throw.
This commit is contained in:
parent
a4c2ab7566
commit
566f8ada23
6
LCN.cpp
6
LCN.cpp
|
@ -50,7 +50,11 @@ void LCN::loop() {
|
||||||
if (Diag::LCN) DIAG(F("LCN IN %d%c"),id,(char)ch);
|
if (Diag::LCN) DIAG(F("LCN IN %d%c"),id,(char)ch);
|
||||||
if (!Turnout::exists(id)) LCNTurnout::create(id);
|
if (!Turnout::exists(id)) LCNTurnout::create(id);
|
||||||
Turnout::setClosedStateOnly(id,ch=='t');
|
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;
|
id = 0;
|
||||||
}
|
}
|
||||||
else if (ch == 'S' || ch == 's') {
|
else if (ch == 'S' || ch == 's') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user