1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

Moved CPU type detection to defines.h

And fixed up BIG_RAM/HAS_ENOUGH_RAM  issues.
This commit is contained in:
Asbelos
2022-07-06 17:05:34 +01:00
parent b7a82a0ad6
commit 14dc569366
4 changed files with 49 additions and 46 deletions

View File

@@ -31,14 +31,14 @@
#include "TrackManager.h"
#ifdef BIG_RAM
#if WIFI_ON || ETHERNET_ON || defined(SERIAL1_COMMANDS) || defined(SERIAL2_COMMANDS) || defined(SERIAL3_COMMANDS)
// use a buffer to allow broadcast
#define BUFFER broadcastBufferWriter
#define FLUSH broadcastBufferWriter->flush();
#define SHOVE(type) broadcastToClients(type);
StringBuffer * CommandDistributor::broadcastBufferWriter=new StringBuffer();
#else
// on a UNO/NANO write direct to Serial and ignore flush/shove
// on a single USB connection config, write direct to Serial and ignore flush/shove
#define BUFFER &Serial
#define FLUSH
#define SHOVE(type)