1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

Avoid compiler bug on some versions

https://github.com/arduino/ArduinoCore-avr/issues/39
This commit is contained in:
Asbelos 2021-12-28 18:31:13 +00:00
parent a45a43f6d4
commit 7fc2d32ad3

View File

@ -123,9 +123,9 @@ const byte RMFT2::rosterNameCount=0
// Pass 6: Roster names emitter
#include "RMFT2MacroReset.h"
#undef ROSTER
#define ROSTER(cabid,name,funcmap...) StringFormatter::send(stream,format,F(name),cabid,cabid<128?'S':'L');
#define ROSTER(cabid,name,funcmap...) StringFormatter::send(stream,(FSH *)format,F(name),cabid,cabid<128?'S':'L');
void RMFT2::emitWithrottleRoster(Print * stream) {
static const FSH * format=F("]\\[%S}|{%d}|{%c");
static const char format[] PROGMEM ="]\\[%S}|{%d}|{%c";
StringFormatter::send(stream,F("RL%d"), rosterNameCount);
#include "myAutomation.h"
stream->write('\n');