1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 13:21:01 +01:00

Changes for compatibility with Installer

This commit is contained in:
dexslab 2020-10-04 11:29:48 -04:00
parent 2495edbd25
commit a8000aae54
2 changed files with 6 additions and 4 deletions

View File

@ -73,7 +73,7 @@ void setup()
// NOTE: References to Serial1 are for the serial port used to connect
// your wifi chip/shield.
#ifdef WIFI_ON
#if WIFI_ON
bool wifiUp = false;
const __FlashStringHelper *wifiESSID = F(WIFI_SSID);
const __FlashStringHelper *wifiPassword = F(WIFI_PASSWORD);
@ -123,7 +123,7 @@ void loop()
serialParser.loop(Serial);
// Responsibility 3: Optionally handle any incoming WiFi traffic
#ifdef WIFI_ON
#if WIFI_ON
WifiInterface::loop();
#endif

View File

@ -23,7 +23,9 @@
// WIFI_ON: All prereqs for running with WIFI are met
//
#if ENABLE_WIFI && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560))
#define WIFI_ON
#define WIFI_ON true
#else
#define WIFI_ON false
#endif
////////////////////////////////////////////////////////////////////////////////