From a4fc10d466e6d9ebdbae5ffcb6e5ef5a6e944db1 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sun, 5 Dec 2021 12:24:46 +0000 Subject: [PATCH] Wifi/Ethernet warnings --- CommandStation-EX.ino | 7 ++++++- defines.h | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 16faf68..689804b 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -45,7 +45,12 @@ */ #include "DCCEX.h" - +#ifdef WIFI_WARNING +#warning You have defined that you want WiFi but your hardware has not enough memory to do that, so WiFi DISABLED +#endif +#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 void setup() { diff --git a/defines.h b/defines.h index 0580605..62a8f69 100644 --- a/defines.h +++ b/defines.h @@ -46,7 +46,7 @@ #define WIFI_CHANNEL 1 #endif #else - #warning You have defined that you want WIFI but your hardware has not enough memory to do that, so WIFI DISABLED + #define WIFI_WARNING #define WIFI_ON false #endif #else @@ -57,7 +57,7 @@ #if defined(BIG_RAM) #define ETHERNET_ON true #else - #warning You have defined that you want ETHERNET but your hardware has not enough memory to do that, so ETHERNET DISABLED + #define ETHERNET_WARNING #define ETHERNET_ON false #endif #else