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:
parent
2495edbd25
commit
a8000aae54
@ -73,7 +73,7 @@ void setup()
|
|||||||
// NOTE: References to Serial1 are for the serial port used to connect
|
// NOTE: References to Serial1 are for the serial port used to connect
|
||||||
// your wifi chip/shield.
|
// your wifi chip/shield.
|
||||||
|
|
||||||
#ifdef WIFI_ON
|
#if WIFI_ON
|
||||||
bool wifiUp = false;
|
bool wifiUp = false;
|
||||||
const __FlashStringHelper *wifiESSID = F(WIFI_SSID);
|
const __FlashStringHelper *wifiESSID = F(WIFI_SSID);
|
||||||
const __FlashStringHelper *wifiPassword = F(WIFI_PASSWORD);
|
const __FlashStringHelper *wifiPassword = F(WIFI_PASSWORD);
|
||||||
@ -123,10 +123,10 @@ void loop()
|
|||||||
serialParser.loop(Serial);
|
serialParser.loop(Serial);
|
||||||
|
|
||||||
// Responsibility 3: Optionally handle any incoming WiFi traffic
|
// Responsibility 3: Optionally handle any incoming WiFi traffic
|
||||||
#ifdef WIFI_ON
|
#if WIFI_ON
|
||||||
WifiInterface::loop();
|
WifiInterface::loop();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Optionally report any decrease in memory (will automatically trigger on first call)
|
// Optionally report any decrease in memory (will automatically trigger on first call)
|
||||||
#if ENABLE_FREE_MEM_WARNING
|
#if ENABLE_FREE_MEM_WARNING
|
||||||
static int ramLowWatermark = 32767; // replaced on first loop
|
static int ramLowWatermark = 32767; // replaced on first loop
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
// WIFI_ON: All prereqs for running with WIFI are met
|
// WIFI_ON: All prereqs for running with WIFI are met
|
||||||
//
|
//
|
||||||
#if ENABLE_WIFI && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560))
|
#if ENABLE_WIFI && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560))
|
||||||
#define WIFI_ON
|
#define WIFI_ON true
|
||||||
|
#else
|
||||||
|
#define WIFI_ON false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user