1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 18:03:45 +02:00

<A> to EXRAIL DCCX_SIGNAL intercept

This commit is contained in:
Asbelos
2024-02-16 12:20:58 +00:00
parent 8705c8c33f
commit 5742b71ec6
3 changed files with 40 additions and 1 deletions

View File

@@ -390,6 +390,12 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
if (params!=2) break;
if (p[0] != (p[0] & 0x7F)) break;
if (p[1] != (p[1] & 0x1F)) break;
#ifdef EXRAIL_ACTIVE
// Ask exrail if this is just changing the aspect on a
// predefined DCCX_SIGNAL. Because this will handle all
// the IFRED and ONRED type issues at the same time.
if (RMFT2::signalAspectEvent(p[0],p[1])) return;
#endif
DCC::setExtendedAccessory(p[0],p[1],3);
}
return;