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

Remove unnecessary #iddefs

These are only avoiding files that alrerady self-destruct... so they don't need to be avoided.
This commit is contained in:
Asbelos 2020-09-26 08:42:24 +01:00
parent bff7555102
commit 59d77f2362
2 changed files with 2 additions and 11 deletions

View File

@ -18,17 +18,8 @@
#include "DIAG.h"
#include "DCCEXParser.h"
#include "version.h"
#ifdef WIFI_ON
#include "WifiInterface.h"
#endif
#if ENABLE_FREE_MEM_WARNING
#include "freeMemory.h"
int ramLowWatermark = 32767; // This figure gets overwritten dynamically in loop()
#endif
#if defined(ARDUINO_ARCH_MEGAAVR)
#include <Arduino.h>
#endif
@ -222,6 +213,8 @@ void loop()
// Optionally report any decrease in memory (will automatically trigger on first call)
#if ENABLE_FREE_MEM_WARNING
static int ramLowWatermark = 32767; // replaced on first loop
int freeNow = freeMemory();
if (freeNow < ramLowWatermark)
{

View File

@ -23,9 +23,7 @@
#include "DCCEXParser.h"
#include "DCC.h"
#include "DCCWaveform.h"
#ifdef WIFI_ON
#include "WifiInterface.h"
#endif
#include "Turnouts.h"
#include "Outputs.h"
#include "Sensors.h"