From 34dde6fe12e40d133bf1d9554eda569552b64035 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sat, 25 Jul 2020 01:40:45 +0100 Subject: [PATCH] Withrottle power at start --- WiThrottle.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 6c39e54..0310cb9 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -100,11 +100,10 @@ void WiThrottle::parse(Print & stream, byte * cmdx) { switch (callState) { case 0: // first call in callState++; - StringFormatter::send(stream,F("VN2.0\nHTDCC++EX\nRL0\nPPA%x\n")); + StringFormatter::send(stream,F("VN2.0\nHTDCC++EX\nRL0\nPPA%x\n"),DCCWaveform::mainTrack.getPowerMode()==POWERMODE::ON); if (annotateLeftRight) StringFormatter::send(stream,F("PTT]\\[Turnouts}|{Turnout]\\[Left}|{2]\\[Right}|{4\n")); else StringFormatter::send(stream,F("PTT]\\[Turnouts}|{Turnout]\\[Closed}|{2]\\[Thrown}|{4\n")); - StringFormatter::send(stream,F("*10\n"), - DCCWaveform::mainTrack.getPowerMode()==POWERMODE::ON); + StringFormatter::send(stream,F("*10\n")); break; case 1: // second call... send the turnout table if we have one callState++;