From b05cbc1fdf43327ccfe33394affd26cd951a2da0 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 20 Dec 2021 10:36:17 +0000 Subject: [PATCH] Correct <+> command any serial --- DCCEXParser.cpp | 2 +- DCCEXParser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 38bac2f..fcbf28c 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -550,7 +550,7 @@ void DCCEXParser::parse(Print *stream, byte *com, RingStream * ringStream) if (atCommandCallback && !ringStream) { DCCWaveform::mainTrack.setPowerMode(POWERMODE::OFF); DCCWaveform::progTrack.setPowerMode(POWERMODE::OFF); - atCommandCallback(stream,com); + atCommandCallback((HardwareSerial *)stream,com); return; } break; diff --git a/DCCEXParser.h b/DCCEXParser.h index 6baeeaa..c298908 100644 --- a/DCCEXParser.h +++ b/DCCEXParser.h @@ -23,7 +23,7 @@ #include "RingStream.h" typedef void (*FILTER_CALLBACK)(Print * stream, byte & opcode, byte & paramCount, int16_t p[]); -typedef void (*AT_COMMAND_CALLBACK)(Print * stream,const byte * command); +typedef void (*AT_COMMAND_CALLBACK)(HardwareSerial * stream,const byte * command); struct DCCEXParser {