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

Passing outbound Ring to Withrottle

This will allow Withrottle to send to other clients and broadcast messages.
This commit is contained in:
Asbelos
2020-10-26 13:31:51 +00:00
parent 6833d82789
commit 8ff947f895
7 changed files with 20 additions and 8 deletions

View File

@@ -22,7 +22,7 @@
DCCEXParser * CommandDistributor::parser=0;
void CommandDistributor::parse(byte clientId,byte * buffer, Print * streamer) {
void CommandDistributor::parse(byte clientId,byte * buffer, RingStream * streamer) {
if (buffer[0] == '<') {
if (!parser) parser = new DCCEXParser();
parser->parse(streamer, buffer, true); // tell JMRI parser that ACKS are blocking because we can't handle the async