1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00
This commit is contained in:
Asbelos 2021-12-28 19:06:47 +00:00
parent 7fc2d32ad3
commit a003d54fdd

View File

@ -85,8 +85,7 @@ const int StringMacroTracker1=__COUNTER__;
void RMFT2::printMessage(uint16_t id) {
switch(id) {
#include "myAutomation.h"
default: DIAG(F("printMessage error %d %d"),id,StringMacroTracker1);
break ;
default: break ;
}
}
@ -104,8 +103,7 @@ void RMFT2::emitTurnoutDescription(Print* stream,int16_t turnoutid) {
const FSH * desc=F("");
switch (turnoutid) {
#include "myAutomation.h"
default:
break;
default: break;
}
if (GETFLASH(desc)=='\0') desc=F("%d");
StringFormatter::send(stream,desc,turnoutid);
@ -125,7 +123,7 @@ const byte RMFT2::rosterNameCount=0
#undef ROSTER
#define ROSTER(cabid,name,funcmap...) StringFormatter::send(stream,(FSH *)format,F(name),cabid,cabid<128?'S':'L');
void RMFT2::emitWithrottleRoster(Print * stream) {
static const char format[] PROGMEM ="]\\[%S}|{%d}|{%c";
static const char format[] FLASH ="]\\[%S}|{%d}|{%c";
StringFormatter::send(stream,F("RL%d"), rosterNameCount);
#include "myAutomation.h"
stream->write('\n');