diff --git a/CommandDistributor.cpp b/CommandDistributor.cpp index db93763..18c4992 100644 --- a/CommandDistributor.cpp +++ b/CommandDistributor.cpp @@ -104,12 +104,14 @@ void CommandDistributor::broadcastPower() { bool main=DCCWaveform::mainTrack.getPowerMode()==POWERMODE::ON; bool prog=DCCWaveform::progTrack.getPowerMode()==POWERMODE::ON; bool join=DCCWaveform::progTrackSyncMain; - if (main && prog && join) reason=F("p1 JOIN"); - else if (main && prog) reason=F("p1"); - else if (main) reason=F("p1 MAIN"); - else if (prog) reason=F("p1 PROG"); - StringFormatter::send(broadcastBufferWriter,F("<%S>\n"),reason); - LCD(2,reason); + if (main && prog && join) reason=F("1 JOIN"); + else if (main && prog) reason=F("1"); + else if (main) reason=F("1 MAIN"); + else if (prog) reason=F("1 PROG"); + else reason=F("0"); + StringFormatter::send(broadcastBufferWriter, + F("\nPPA%c\n"),reason, main?'1':'0'); + LCD(2,F("Power %S"),reason); broadcast(); }