From beca0b3368d83f29bf7284cd4065567f2fb6a4fe Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Mon, 23 Nov 2020 22:13:36 +0100 Subject: [PATCH] Safety measure: Turm power off at + command --- DCCEXParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 2b90136..87efd2e 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -402,6 +402,8 @@ void DCCEXParser::parse(Print *stream, byte *com, bool blocking) case '+': // Complex Wifi interface command (not usual parse) if (atCommandCallback) { + DCCWaveform::mainTrack.setPowerMode(POWERMODE::OFF); + DCCWaveform::progTrack.setPowerMode(POWERMODE::OFF); atCommandCallback(com); return; }