From 4d809b85b3b8616b1c2fc9ab625f1b827b5f11af Mon Sep 17 00:00:00 2001 From: Asbelos Date: Wed, 15 Dec 2021 20:08:24 +0000 Subject: [PATCH] Clean up exrail warning on nanos --- CommandStation-EX.ino | 3 +++ defines.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 689804b..861d77b 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -51,6 +51,9 @@ #ifdef ETHERNET_WARNING #warning You have defined that you want Ethernet but your hardware has not enough memory to do that, so Ethernet DISABLED #endif +#ifdef EXRAIL_WARNING +#warning You have myAutomation.h but your hardware has not enough memory to do that, so EX-RAIL DISABLED +#endif void setup() { diff --git a/defines.h b/defines.h index 62a8f69..038b9de 100644 --- a/defines.h +++ b/defines.h @@ -79,7 +79,7 @@ #if defined(BIG_RAM) || defined(DISABLE_EEPROM) #define RMFT_ACTIVE #else - #warning You have myAutomation.h but your hardware has not enough memory to do that, so EX-RAIL DISABLED + #define EXRAIL_WARNING #endif #endif