1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +01:00

Correcting <+> command any-serial

This commit is contained in:
Asbelos 2021-12-20 10:33:48 +00:00
parent c15d536e9b
commit 52e7929b08
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ void DCCEXParser::parse(Print *stream, byte *com, RingStream * ringStream)
if (atCommandCallback && !ringStream) { if (atCommandCallback && !ringStream) {
DCCWaveform::mainTrack.setPowerMode(POWERMODE::OFF); DCCWaveform::mainTrack.setPowerMode(POWERMODE::OFF);
DCCWaveform::progTrack.setPowerMode(POWERMODE::OFF); DCCWaveform::progTrack.setPowerMode(POWERMODE::OFF);
atCommandCallback(stream,com); atCommandCallback((HardwareSerial *)stream,com);
return; return;
} }
break; break;

View File

@ -23,7 +23,7 @@
#include "RingStream.h" #include "RingStream.h"
typedef void (*FILTER_CALLBACK)(Print * stream, byte & opcode, byte & paramCount, int16_t p[]); 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 struct DCCEXParser
{ {