From 0a3d2e75950ddcaa8ce7d8d952abb2cf5d2bc98d Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 4 Jul 2020 21:53:44 +0200 Subject: [PATCH] Implement # command --- CVReader.ino | 6 +++--- DCCEXParser.cpp | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CVReader.ino b/CVReader.ino index be69908..913e1b4 100644 --- a/CVReader.ino +++ b/CVReader.ino @@ -43,10 +43,10 @@ void myFilter(Print & stream, byte & opcode, byte & paramCount, int p[]) { DCC::setFn(p[0],p[1],p[2]==1); opcode=0; // tell parser to ignore this command break; - case '#': // Diagnose parser <#....> - DIAG(F("# paramCount=%d\n"),paramCount); + case '$': // Diagnose parser <$....> + DIAG(F("$ paramCount=%d\n"),paramCount); for (int i=0;i + StringFormatter::send(stream,F("<# %d>"), MAX_LOCOS); + return; default: //anything else will drop out to break;