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